I tried to implement the solution suggested above by Mike.
But somehow it is giving the below error:
Master template is the same as the current template. It would cause an endless loop! Make sure that the current template ''Template with id: '-1' has another Master Template than itself. You can change this in the template editor under 'Settings'
Multiple masterpage folder paths
Hello
It it possible to have multiple masterpage folder paths?
We have different projects, running on one Umbraco solution:
For each project we wish to have the masterpages separated EG: masterpage/project1 masterpage/project2 etc.
I tried adding the following in the config. file, but it seems that umbraco is only accepting one masterpage path?
<add key="umbracoMasterPagesPath" value="~/masterpages/Apth/,~/masterpages/" />
We approached it slightly differently and injected an override on the masterpage to be used dependant on some parameter...
so have Default.aspx inherit from your custom...
Thank you very much for your help.
Hi
I tried to implement the solution suggested above by Mike.
But somehow it is giving the below error:
Master template is the same as the current template. It would cause an endless loop! Make sure that the current template ''Template with id: '-1' has another Master Template than itself. You can change this in the template editor under 'Settings'
Also.. if i do a...
Response.Write(umbraco.cms.businesslogic.template.Template.GetByAlias(template.TemplateAlias + "Mobile"));
It gives..
{ Id: 3317, Text: HomePage TemplateMobile, ParentId: -1 }
The ParentId -1 seems to cause the issue.
Any idea what is going wrong?
Any help will be appreciated
Thanks
is working on a reply...