Unsure exactly what has changed in the 24hours from when I finished with it, but today any layouts are going in the masterpages folder and saving with the .masterpage extension.
I have checked and the default rendering engine is set to MVC.
I'm pretty sure that it is only the setting in umbracoSettings.config that determines this. I have once experienced .master files being created alongside my .cshtml files but that was down to uSync and the fact that my layout View was called "MasterPage" as I was converting a WebForms site to MVC, changing it's name to "MasterView" solved it.
Thanks for your help guys. Turns out it was because when I pasted some html from the old site I had missed a forms element which meant that Umbraco obviously recognised and changed it to a master template.
Happy to see you got it solved and thanks for sharing the issue - But don't know if it's obvious that Umbraco changes the template when some code is copied that was intended for another template engine? Should'nt that provide some kind of error on the frontend instead?
Of course it's an edge case but I bet it took quite a while to figure it out? :) Maybe it should be reported on the issue tracker?
Master layout saving as .masterpage not .cshtml
Unsure exactly what has changed in the 24hours from when I finished with it, but today any layouts are going in the masterpages folder and saving with the .masterpage extension.
I have checked and the default rendering engine is set to MVC.
Any suggestions would be greatly appreciated.
Shane
Hi Shane
That sounds really odd - What version of Umbraco are you currently using?
Does the trace log give any clue if you check it at /app_data/logs ?
/Jan
Hi Jan,
Nothing sticks out in the trace log. Using 7.1.4.
I did wonder if somewhere between me changing the default layout and doctypes several times has caused some issues?
This is currently not in production yet so if need be I will reinstall it.
Shane
Hi Shane
That's really odd - Are you the only one working on the site? Something must have triggered it somehow.
/Jan
I'm pretty sure that it is only the setting in umbracoSettings.config that determines this. I have once experienced .master files being created alongside my .cshtml files but that was down to uSync and the fact that my layout View was called "MasterPage" as I was converting a WebForms site to MVC, changing it's name to "MasterView" solved it.
Thanks for your help guys. Turns out it was because when I pasted some html from the old site I had missed a forms element which meant that Umbraco obviously recognised and changed it to a master template.
Hi Shane
Happy to see you got it solved and thanks for sharing the issue - But don't know if it's obvious that Umbraco changes the template when some code is copied that was intended for another template engine? Should'nt that provide some kind of error on the frontend instead?
Of course it's an edge case but I bet it took quite a while to figure it out? :) Maybe it should be reported on the issue tracker?
/Jan
I ran into this same issue too on 7.1.4 doing the same thing. I missed an umbraco:item from an old version that was copied over. Thanks for sharing!
is working on a reply...