v7 to v10+ Migration, Content Grid with multiple column layouts to Block Grid
# help-with-umbraco


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
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.