Copied to clipboard

Flag this post as spam?

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


  • [email protected] 406 posts 2135 karma points MVP 7x c-trib
    Aug 17, 2017 @ 10:42
    jeffrey@umarketingsuite.com
    0

    Render a new sectiontree with existing content nodes

    Hi all,

    would it be easily possible to render a whole new section with a 'normal' content tree with the 'normal' menu items. So you could just Create, Publish, Save existing nodes.

    But instead of showing all nodes that are in the content tree I would like to show only those nodes with a certain charateristic (for example Field A equals 'Foobar').

    I've found some documentation (https://our.umbraco.org/documentation/Extending/Section-Trees/trees-v7) but essentially what I want is just have a function that I could fill with a list of nodes and that should be rendered. Nothing more...

    Anyone any thoughts?

    Jeffrey

  • Damiaan 442 posts 1301 karma points MVP 6x c-trib
    Aug 17, 2017 @ 12:05
    Damiaan
    100

    Hi Jeffrey,

    That would not be too hard. I think you would be able to inhert from the ContentTreeController.

    If you override the GetTreeNodes, you would be able to skip the necessary nodes I think.

    Kind regards
    Damiaan

  • [email protected] 406 posts 2135 karma points MVP 7x c-trib
    Aug 17, 2017 @ 14:07
    jeffrey@umarketingsuite.com
    0

    Hi Damiaan,

    that's sounds really easy indeed. Also found this great article; http://skrift.io/articles/archive/sections-and-trees-in-umbraco-7/

    I think I will get it to work.

    Thanks man!

Please Sign in or register to post replies

Write your reply to:

Draft