We have a pretty decent number of templates in our Umbraco solution now, and the Views folder is getting really hard to navigate through. A folder structure would be the best solution here, but I see no mapping from a template in Umbraco to the corresponding view.
How does one configure Umbraco to look for templates in subfolders of the "views" folder?
In the meanwhile I started using the HybridFramework, which handles all calls through a base controller. In that controller the same logic as you refer to in your documentation is now implemented for "CurrentTemplate".
Umbraco 7: creating folders for templates
Hi people
We have a pretty decent number of templates in our Umbraco solution now, and the Views folder is getting really hard to navigate through. A folder structure would be the best solution here, but I see no mapping from a template in Umbraco to the corresponding view.
How does one configure Umbraco to look for templates in subfolders of the "views" folder?
Hi! Same issue here. Did you manage to solve it?
Unfortunately not marcelh, I think we have to take it as "it's not possible".
Currently its not possible to have views in subfolders and also manage them through the Umbraco backoffice.
Hope that is one feature they will add as soon as possible.
Thanks David.
Comment author was deleted
I have my own solution for this that I use: https://github.com/kgiszewski/LearnUmbraco7/blob/master/Chapter%2012%20-%20Multisite%20Configuration/02%20-%20Using%20Sub-folders%20for%20Templates.md
Nice approach Kevin! Hadn't thought of that.
In the meanwhile I started using the HybridFramework, which handles all calls through a base controller. In that controller the same logic as you refer to in your documentation is now implemented for "CurrentTemplate".
Comment author was deleted
Oh nice! I haven't gotten around to trying the Hybrid Framework yet but I know Jeroen has always got good stuff. Thanks for the tip.
is working on a reply...