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...
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
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
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!
is working on a reply...