We have moved to GitHub Issues
Created by Stéphane Bouchard-Pagé 16 May 2013, 13:04:47 Updated by Shannon Deminick 28 May 2013, 03:13:40
Relates to: U4-2276
Relates to: U4-2277
When I create a document type, Umbraco add a ".master" file instead of ".cshtml" razor file. (Only if "Create matching template" option is checked)
But, if I manually add a new template by clicking on "Templates/Create", a razor file is added.
@Shannon This works fine in 6.0.5. Could you take a look please?
sure thing, will check when i'm up tomorrow.
@Sebastian, still trying to figure out how this ever worked in pre 6.1 since the code is the same for the rendering engine check here in revision: b3f489659285
If the 'Path' is empty, for which it is when a new one is created, then it defaults to WebForms. It's easy to fix but if it did work in pre 6.1 that leads me to believe that the Path was previously being set to something.
Ahh, think i found it, in 6.1 we are using the new API but before we were using the old one, will investigate.
For the time being I will revert the nodeTypeTasks back to using the old template API. I've referenced 2 issues with this one: U4-2276, U4-2277 which would need to be fixed in order to use the new template API to create templates.
This is fixed in e0aa6240213e
Assignee: Shannon Deminick
Backwards Compatible: True
Affected versions: 6.1.0
Due in version: 6.1.0