U4-2243 - 6.1 Beta 2 : Mvc: when creating a document type, Umbraco add a ".master" file instead of ".cshtml" file. (if "Create matching template" is checked)

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.

Note : Mvc is setted

1 Attachments


Sebastiaan Janssen 27 May 2013, 11:18:06

@Shannon This works fine in 6.0.5. Could you take a look please?

Shannon Deminick 27 May 2013, 11:19:57

sure thing, will check when i'm up tomorrow.

Shannon Deminick 28 May 2013, 00:32:38

@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.

Shannon Deminick 28 May 2013, 00:43:36

Ahh, think i found it, in 6.1 we are using the new API but before we were using the old one, will investigate.

Shannon Deminick 28 May 2013, 01:33:38

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.

Shannon Deminick 28 May 2013, 03:13:37

This is fixed in e0aa6240213e

Priority: Normal

Type: Bug

State: Fixed

Assignee: Shannon Deminick

Difficulty: Normal

Category: Editor

Backwards Compatible: True

Fix Submitted:

Affected versions: 6.1.0

Due in version: 6.1.0


Story Points: