jacksorjacksor (Richard Jackson)
09/05/2023, 5:42 PM{
"layout":{
"Umbraco.BlockList":[
{
"contentUdi":"umb://element/0da576e5fc7445bd9d789c5ee9fe9c54",
"settingsUdi":"umb://element/7073a102dbcc487986962a3d51820de7"
},
{
"contentUdi":"umb://element/c6e23e8137d24b409bb5ef41bdb705b9",
"settingsUdi":"umb://element/0467ceb158cc49a1acfd1516f63eccf6"
}
]
},
Anders Bjerner
09/05/2023, 6:35 PMnew GuidUdi(Constants.UdiEntityType.Element, Guid.NewGuid())
should suffice.jacksorjacksor (Richard Jackson)
09/05/2023, 9:19 PMAnders Bjerner
09/05/2023, 9:25 PMcontentUdi
has to match the UDI that you're specifying for the corresponding item in the contentData
array. Similar goes for settings. But the UDIs doesn't refer to anything outside the block list model.jacksorjacksor (Richard Jackson)
09/06/2023, 7:38 AM"contentTypeKey":"aca1158a-bad0-49fc-af6e-365c40683a92"
is referring to either the People
property/block list editor or the Person
document type which is created by People
- but I'm unsure of which.
My other follow-up in this specific area is that the [two C# examples after the JSON file](https://docs.umbraco.com/umbraco-cms/v/10.latest-lts/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/block-editor/block-list-editor#creating-blocklist-programmatically) never actually parse the JSON file, so I'm confused as to the relationship between the three code snippets.Anders Bjerner
09/06/2023, 12:18 PMjacksorjacksor (Richard Jackson)
09/06/2023, 1:06 PMAnders Bjerner
09/06/2023, 1:26 PMjacksorjacksor (Richard Jackson)
09/06/2023, 1:37 PMAnders Bjerner
09/06/2023, 1:41 PMjacksorjacksor (Richard Jackson)
09/06/2023, 1:43 PMAnders Bjerner
09/06/2023, 1:46 PMHfYouTubeBlock
, and referencing this via a generic parameter, my underlying logic will automatically find the correct GUID key. On the plus side, there is then also intellisense for the properties of said model.Anders Bjerner
09/06/2023, 1:48 PMIContentService
. Which can be a pain.jacksorjacksor (Richard Jackson)
09/06/2023, 1:49 PMAnders Bjerner
09/06/2023, 1:51 PMjacksorjacksor (Richard Jackson)
09/06/2023, 2:02 PMSebastiaan
09/06/2023, 2:13 PMIddqd
??jacksorjacksor (Richard Jackson)
09/06/2023, 2:14 PMAnders Bjerner
09/06/2023, 2:14 PMAnders Bjerner
09/06/2023, 2:14 PMSebastiaan
09/06/2023, 2:14 PMSebastiaan
09/06/2023, 2:15 PMjacksorjacksor (Richard Jackson)
09/06/2023, 2:24 PMjacksorjacksor (Richard Jackson)
09/07/2023, 11:37 AMmarcusjmsweden
12/21/2023, 12:53 PMmarcusjmsweden
12/21/2023, 12:53 PMmarcusjmsweden
12/21/2023, 12:53 PMAnders Bjerner
12/21/2023, 8:48 PMmarcusjmsweden
12/21/2023, 8:55 PMmarcusjmsweden
12/21/2023, 8:55 PM