umbraco/The-Starter-Kit

V11 content not updated for use of block grid

Opened this issue · 0 comments

I was looking into an issue reported for Deploy using the new block grid. It was being triggered by receiving unexpected JSON content when transferring content containing the new block grid.

I believe this is happening because the default content installed - from the XML file within package.zip file - still has some content for an empty grid based on the legacy grid editor.

E.g.:

<bodyText><![CDATA[{"name":"1 column layout","sections":[{"grid":"12","rows":[]}]}]]></bodyText>

We can - and should - fix it in the Deploy connector such that we are more defensive against bad input. But probably this should be updated too.

The problem goes away if you first save the content, which makes sure that a correctly empty block grid value is saved. If I then export the package I can see the fields are omitted.

So I think it's just a case of going through the package.xml file and removing these elements that represent empty grid content.