Copied to clipboard

Flag this post as spam?

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


  • Tim Bennett 23 posts 155 karma points
    May 24, 2021 @ 15:56
    Tim Bennett
    1

    Nested Block List - getting root nodes and their children

    Ok, so I'll try and explain

    I have built a simple "page builder" using nested Block Lists, and so far so good, I really like Block Lists!

    At the the root of my site I have two nodes: the root of the site (homepage), and a "Data" node that has amoungst its children a doctype collection called "Packages" which I'm trying to access.

    I have a doctype/page on which I'm trying to render the children of Packages. This is handled by a parent Block List that contains a nested Block List. What I'm trying to do is render those children via the nested Block Partial View, independent of the actual Block List editor UI. Except, I can't find anything to get a handle on. I think it's because the Model has by this point been converted into the type BlockListItem?

    I'm hoping I can just inherit something to give me access to the root nodes, but I'll be jiggered if I can work out what!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies