Hi all,
I’m working on a multi-site setup in Umbraco 13, and I’m organizing my template files like this:
/Views
/SiteA
Home.cshtml
About.cshtml
/SiteB
Home.cshtml
Contact.cshtml
I’m using uSync to manage templates and document types across environments, and I’d like to keep each site’s Razor views in separate subfolders for clarity and maintainability.
My Questions:
Is there a way to customize where Umbraco saves .cshtml files when you create or edit templates in the Backoffice?
Can Umbraco be configured to recognize templates inside subfolders, like /Views/SiteA/Home.cshtml, instead of only /Views/Home.cshtml?
How do other teams usually handle Razor view organization for multi-site projects in Umbraco 13?
Right now, every time I save a template in the Backoffice, Umbraco writes to /Views/{alias}.cshtml, which:
Conflicts with my subfolder structure
Can cause confusion or even overwritten files if someone forgets to check the right path
I’m also concerned about syncing with uSync — the saved .cshtml files don’t always reflect the structure I’m trying to enforce.
What I’m looking for:
Best practices for working with template files in multi-site projects
Whether it’s possible to disable automatic view generation or override the path
Any experience from teams using uSync + multi-folder view organization