One of the main reasons I have not used Umbraco yet, is that there is no ootb way to organize the razor templates in physical folders structure as any standard asp.net application.
And I still don't know if there is a clean way to do it while templates can still be aware of the physical location of the view inside sub-folders of (~/Views).
As I want to organize templates per modules to keep the views clean and easy to access when I have hundreds of them.
Otherwise, if you may suggest a way to organize lots of templates of different modules. without keeping them together in the same folder.
Folder Structure in Templates
Hello,
One of the main reasons I have not used Umbraco yet, is that there is no ootb way to organize the razor templates in physical folders structure as any standard asp.net application.
And I still don't know if there is a clean way to do it while templates can still be aware of the physical location of the view inside sub-folders of (~/Views).
As I want to organize templates per modules to keep the views clean and easy to access when I have hundreds of them.
Otherwise, if you may suggest a way to organize lots of templates of different modules. without keeping them together in the same folder.
We solved this by using the Templates (Views folder) only for page templates.
Everything else goes into the partial views folder if it needs to be visible in the Umbraco Backoffice.
Thanks Frans for your reply
I found some articles about route hijacking which can really help to achieve the required physical structure on the project/code level at least
https://docs.umbraco.com/umbraco-cms/reference/routing/custom-controllers/
is working on a reply...