Any possibilities to "folder" or "group" content w...
# help-with-umbraco
d
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
That's what List View was built for 🙂
a
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
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
I guess the CustomUrlProvider is the right approach, although it seems quite complicated to implement
j
If the main issue is the urls you could also consider not grouping them under home and then setting the umbracourlname on save or something: https://docs.umbraco.com/umbraco-cms/reference/routing/routing-properties#umbracourlname Haven't had this specific usecase but may be worth a test
d
Oh that could be a decent compromise
49 Views