Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nick 84 posts 451 karma points
    Mar 01, 2023 @ 16:49
    Nick
    0

    Rendering Block Grid on page issue

    Hi,

    I'm following the umbraco instructions to enable a block grid on a specific page template, alll seems to work on within the backend CMS, but nothing render either visually or in the code when I publish the page see images below, also I don't receive an page errors, any help would be much appreciated:

    enter image description here

    enter image description here

    enter image description here

    enter image description here

    On a separate note I see the out of the box block elements are rendered in the Umbraco content page, How can I achieve this with my custom built blocks?

    Many thanks as always

    Nick

  • Marc Goodson 2125 posts 14216 karma points MVP 8x c-trib
    Mar 01, 2023 @ 18:04
    Marc Goodson
    1

    Hi Nick

    There is a great 'deep dive' into working with the block grid here: https://umbraco.com/blog/deep-dive-block-grid-editor-part-1/

    That might give you a few pointers, that seems to suggest you'll need partial views for each block in /views/partials/blockgrid/components...

    But maybe you have and its something else...

    but mentioning just in case!

    Regards

    Marc

  • Nick 84 posts 451 karma points
    Mar 01, 2023 @ 19:56
    Nick
    0

    Hi Marc,

    Thanks for getting back to me, the 'deep dive' guide is the one I'm following, forgot to mention the partials I've already created, can't understand what I'm missing :-(

    enter image description here

  • Huw Reddick 1702 posts 5999 karma points MVP c-trib
    Mar 02, 2023 @ 12:07
    Huw Reddick
    0

    do you have the corresponding templates in Views\Partials\blockgrid ?

  • Marc Goodson 2125 posts 14216 karma points MVP 8x c-trib
    Mar 01, 2023 @ 21:31
    Marc Goodson
    1

    Hi Nick..

    Hmm, there is a demo git repo of the block grid in action here:

    https://github.com/umbraco/Umbraco.BlockGrid.Example.Website

    Wonder if you forked that and ran it locally whether comparing that with what you have would reveal the anomaly...

    Regards

    Marc

  • Nick 84 posts 451 karma points
    Mar 02, 2023 @ 15:46
    Nick
    0

    Hi Marc,

    Thanks again for your support, funnily enough I spun up a separate instance of the Block Grid Template to see where I was going wrong, but this Block Grid data type has defeated me, so have gone back to using a Block List data type instead which works perfectly fine, when I've got a bit more time I'll look into it again as it would be good to use the layout options.

    Thanks again

    Nick

  • Nick 84 posts 451 karma points
    Apr 01, 2023 @ 11:08
    Nick
    100

    Hi Marc,

    Thanks for all your suggestions, after sometime away I tried the block grid again and managed to get it working only after refreshing the database cache within settings:

    enter image description here

    Thanks again for all community support on this

  • Marc Goodson 2125 posts 14216 karma points MVP 8x c-trib
    Apr 03, 2023 @ 12:00
    Marc Goodson
    0

    Glad you got it sorted, and thanks for posting the answer, sure it will help someone else who is similarly banging their head against the examples!

Please Sign in or register to post replies

Write your reply to:

Draft