https://discord.umbraco.com logo
#help-with-umbraco
v7 to v10+ Migration, Content Grid with multiple column layouts to Block Grid
# help-with-umbraco
z

zimmertyzim_35888

01/31/2024, 5:33 PM
I am really struggling with this. I have an old v7 site, that we need to migrate to v10. It's relatively simple, so I am more or less rewriting it. I am trying to ditch the old content grids due to them being phased out, and a huge part of migrating is the easier updates down the line. For the life of me I cannot get the multiple columns to work. Please see the attached images to see the old setup and new. I can add a column as a block, and then add content to it, but I hit this error when trying to render:
@await Html.GetBlockGridHtmlAsync(Model, "contentBlock")
Could not render component of type: singleColumn
This likely happened because the partial view blockgrid/Components/singleColumn could not be found.
This makes sense, however it was magically handled in v7 (I don't see any custom layouts in the code):
@Html.GetGridHtml(Model.Content, "contentGrid", "bootstrap3")
How should I be going about this? Am I approaching this all wrong? Thanks https://cdn.discordapp.com/attachments/1202305573262217236/1202305573606142012/image.png?ex=65ccf952&is=65ba8452&hm=662ec9cea7485db2e6b3fa6f0f2b364a2c82e0b95fb506a03f184995f369f6df& https://cdn.discordapp.com/attachments/1202305573262217236/1202305573870108782/image.png?ex=65ccf952&is=65ba8452&hm=51c74d04c25b2f65d4f9540d4e8229a81a136c1a4eef2f8d4a920134f0f4554c&
just to add, in another project,
@await Html.GetBlockGridHtmlAsync(Model, "contentBlock")
worked fine as there were no column layouts. I thought the same approach may work.