Our client has many content pages directly below home. The content gets difficult to manage. They would like the ability to create a folder or somehow group the content together to keep the content tree clean. I found Virtual Nodes for Umbraco 8. However, we run on Umbraco 10. The marketplace doesn't seem to have anything either when I search for "folder" or "virtual".
So, is there anything out there that I can use or a code snippet I can implement? It is essential that the pages keep the same URL as it already has.
s
Sebastiaan
12/05/2023, 10:44 AM
That's what List View was built for 🙂
a
Ambert
12/05/2023, 10:56 AM
We've used something like that, but it has some implications though.
The first part is making a folder and hide that url in it's subpages (CustomUrlProvider)
The second part is making a contentsavingnotification that checks the url before saving. As you can't have
/someHiddenFolder/contact
/someOtherHiddenFolder/contact
As they would have the same URL in the end
And don't forget to calculate in for language variants/url's 🙂
This however was build in V8, however the same approach could be used in V10+ I assume
d
D_Inventor
12/05/2023, 1:16 PM
I would've liked to just use the list view, but all this content is directly below the home node. I do not wish to turn the home node into a list view as it also contains many other things that should not go into a list view
D_Inventor
12/05/2023, 1:18 PM
I guess the CustomUrlProvider is the right approach, although it seems quite complicated to implement