-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content Templates does not trigger generation of new Keys #13698
Comments
As Niels said, copying a document created from a content template updates the values correctly (even for the nested blocks - ex: each block from the Two Column Layout has a different A few more notes:
Most likely, fixing this issue would provide a guideline on how to fix #13413 |
This issue is now tagged with affected/v11 and affected/v10, but as mentioned in #13901 this also occurs on 8.17.0 |
I've added the tag now, that's an oversight, sorry about that 😅 |
@nikolajlauridsen No problem at all! Thanks for adding the tag :) |
This should now be fixed in #15541 |
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
10.4
Bug summary
When a document containing a Block Grid Editor is created as a Content Template.
And this Content template is used to create documents. Then the Blocks does not get new keys, which it should. cause we use the key for some caching. So first cached data will affect the others.
See the original issue reported here:
umbraco/Umbraco.BlockGrid.Example.Website#6
Specifics
No response
Steps to reproduce
Setup something with Block Grid Editor, I would prefer something that is nested.
Make a Content Template from it.
Create two pages based on the content template.
View the first page, in backoffice, and inspect Network traffic.
Retrieve the ContentUDI of the first layout item, of the Property Value.
Verify that the other page created from the same Content Template got the exact same ContentUDI in their.
I would expect that every Document created from a Content Template got new ContentUDI.
Notice the ContentUDI is referenced between items of layout and data.
The same goes for SettingsUDI. but that is referenced between layout and settingsData.
Notice:
This does not happen then Copying documents, but to me the Create from Content Template feature should be using the same features as the Copy Feature.
Expected result / actual result
I would expect that every Document created from a Content Template gets new ContentUDI and SettingsUDI, that has to happen for all Blocks and the data of them, no matter the amount of nesting.
The text was updated successfully, but these errors were encountered: