skttl
08/23/2023, 11:19 AMxml
<socialMediaIcons>
<Value><![CDATA[[
{
"key": "aba129ff-6b58-41b0-9970-ec03ed92c8c4",
"name": "http://facebook.com",
"ncContentTypeAlias": "socialMediaIcons",
"link": "[{\"name\":\"http://facebook.com\",\"target\":\"_blank\",\"url\":\"http://facebook.com\"}]"
},
{
"key": "a9eb9e13-3dfc-4cc8-b8f6-65e745ffd38d",
"name": "http://linkedin.com",
"ncContentTypeAlias": "socialMediaIcons",
"link": "[{\"name\":\"http://linkedin.com\",\"url\":\"http://linkedin.com\"}]"
}
]]]></Value>
</socialMediaIcons>
Same thing goes with grid content:
xml
<pageContent>
<Value><![CDATA[{
"name": "Fuld bredde",
"sections": [
{
"grid": "12",
"rows": []
}
]
}]]></Value>
</pageContent>
Is this correct?Kevin Jump
08/23/2023, 12:06 PMskttl
08/23/2023, 12:22 PMKevin Jump
08/23/2023, 12:25 PMKevin Jump
08/23/2023, 12:26 PMKevin Jump
08/23/2023, 12:26 PMskttl
08/23/2023, 12:27 PMskttl
08/23/2023, 12:32 PMFailed migrating [Umbraco.Grid - pageContent] : Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.IList`1[uSync.Migrations.Migrators.Core.NestedContentRowValue]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
Looks like it could be related to nested content in grid items 🙂skttl
08/23/2023, 12:34 PMskttl
08/23/2023, 2:43 PMKevin Jump
08/23/2023, 4:57 PMKevin Jump
08/23/2023, 4:58 PMcs
// has already been converted.
if (contentProperty.Value.Contains("\"Umbraco.BlockGrid\""))
{
_logger.LogDebug(" Property [{name}] is already BlockGrid", contentProperty.EditorAlias);
return contentProperty.Value;
}
but doesn't look like we do it for Nested to BlockList - it will take a lookKevin Jump
08/23/2023, 4:59 PMskttl
08/24/2023, 6:22 AMskttl
08/24/2023, 6:30 AMcs
if (contentProperty.Value.InvariantStartsWith("{\r\n \"layout\": {\r\n \"Umbraco.BlockList\":"))
{
_logger.LogDebug("Property [{name}] is already BlockList", contentProperty.EditorAlias);
return contentProperty.Value;
}
Although, it probably shouldn't hit twice 🙂
I also get an empty block in the blockgrid with an empty contentTypeKey besides the correct blocks, I have to investigate further 🙂
json
"contentData": [
{
"contentTypeKey": "00000000-0000-0000-0000-000000000000",
"udi": "umb://element/e98cb276939b414b9f549a137484d0cb"
},
skttl
08/24/2023, 6:51 AMskttl
08/24/2023, 10:04 AMKevin Jump
08/24/2023, 11:41 AMandrewmckaskill
08/24/2023, 12:32 PMandrewmckaskill
08/24/2023, 1:10 PMandrewmckaskill
08/24/2023, 1:11 PMandrewmckaskill
08/24/2023, 1:11 PMandrewmckaskill
08/24/2023, 1:49 PMMike Chambers
08/24/2023, 3:05 PMMike Chambers
08/24/2023, 3:07 PMA hub and casual space for you to interact with fellow community members and learn more about Umbraco!
Powered by