I have successfully upgraded from 6 to 7.2.1 and now I' trying to 'upgrade' my webforms to Mvc. I have changed the defaultrenderingengine to Mvc, I would like my Mvc templates to have the same name as my old Webforms so I delete my Webform and create a new Mvc template.
The problem is the it appears in the Masterpage folder with extension .master. If I create a new template with an unsued name it appears in the views folder with the correct cshtml extension. O assume the is some sort of link in the database that I just can't find.
I have tried to moved it fraom the Masterpage folder to the Views folder and changed the extension. I can then load it using the backend. When I change and save it it disappears from the views folder and appears again in the Masterpages folder
Did you delete the "webforms" (aka, the templates with ".master" extensions) via the Umbraco interface, or did you just delete them directly from the file system? I suspect you'll have to delete them from the Umbraco interface.
Then I imagine that is an Umbraco bug. Or it could be that the content nodes are still using the old template names. As a workaround, I recommend just using slightly different names for the MVC templates.
Templates not saved as cshtml files
Hi
I have successfully upgraded from 6 to 7.2.1 and now I' trying to 'upgrade' my webforms to Mvc. I have changed the defaultrenderingengine to Mvc, I would like my Mvc templates to have the same name as my old Webforms so I delete my Webform and create a new Mvc template.
The problem is the it appears in the Masterpage folder with extension .master. If I create a new template with an unsued name it appears in the views folder with the correct cshtml extension. O assume the is some sort of link in the database that I just can't find.
I have tried to moved it fraom the Masterpage folder to the Views folder and changed the extension. I can then load it using the backend. When I change and save it it disappears from the views folder and appears again in the Masterpages folder
Any clues?
Paul S
Did you delete the "webforms" (aka, the templates with ".master" extensions) via the Umbraco interface, or did you just delete them directly from the file system? I suspect you'll have to delete them from the Umbraco interface.
If that doesn't work, it may be a bug in Umbraco, which you can report here: http://issues.umbraco.org/
Hi
They were deleted from the UI.
Then I imagine that is an Umbraco bug. Or it could be that the content nodes are still using the old template names. As a workaround, I recommend just using slightly different names for the MVC templates.
Hi
If the file contains macros it is stored as a .masterfile - otherwise it is stored as a cshtnl - don't know if that's a bug.
Paul S
is working on a reply...