We are using Umbraco as CMS for one of our client and we are targetting almost 20 websites in single umbraco instance.
There may be the possibility that we may have saperate or similar templates for these many websites.
By looking at the current structure of umbraco we have to create all the templates inside Views folder only.
It would have been great if we had facility to create subfolder for each site inside Views folder so that at least whatever templates are their which are going to be unique in nature, we can put across respective website folder inside view.
Is there any possibility to achieve the same.
Note: I know we may have to loose umbraco as a dashboard to edit the templates and even creating macros. Thats absolutely fine because we are going to use visual studio to edit the templates.
Hi Snehal. I think Umbraco requires all templates/views to live within the root of the Views folder when using MVC as the rendering engine. You can however have add sub folders to the Partial Macros and Macros folder. This could help with your site separation.
Subfolder inside "Views" for each website
Hi,
We are using Umbraco as CMS for one of our client and we are targetting almost 20 websites in single umbraco instance.
There may be the possibility that we may have saperate or similar templates for these many websites.
By looking at the current structure of umbraco we have to create all the templates inside Views folder only.
It would have been great if we had facility to create subfolder for each site inside Views folder so that at least whatever templates are their which are going to be unique in nature, we can put across respective website folder inside view.
Is there any possibility to achieve the same.
Note: I know we may have to loose umbraco as a dashboard to edit the templates and even creating macros. Thats absolutely fine because we are going to use visual studio to edit the templates.
Thanks,
Snehal
Hi Snehal. I think Umbraco requires all templates/views to live within the root of the Views folder when using MVC as the rendering engine. You can however have add sub folders to the Partial Macros and Macros folder. This could help with your site separation.
Curious if you have found a solution to this issue?
https://github.com/kgiszewski/LearnUmbraco7/blob/master/Chapter%2012%20-%20Multisite%20Configuration/02%20-%20Using%20Sub-folders%20for%20Templates.md
is working on a reply...