Changed the Template prop of documentrequest to be a new TemplateLookup object since we are going
to need to support MVC and the old Template object is for webforms. I've added a lot of TODO's here because we'll need to enable the lookups properly in each ILookup and also set the rendering engine (IsMvc) in the ILookups too. This hasn't been enabled, yet, just a bunch of TODO's written.
This commit is contained in:
@@ -100,7 +100,7 @@ namespace Umbraco.Web.Mvc
|
||||
|
||||
//check if the custom controller has an action with the same name as the template name (we convert ToUmbracoAlias since the template name might have invalid chars).
|
||||
//NOTE: This also means that all custom actions MUST be PascalCase.. but that should be standard.
|
||||
var templateName = documentRequest.Template.Alias.Split('.')[0].ToUmbracoAlias(StringAliasCaseType.PascalCase);
|
||||
var templateName = documentRequest.TemplateLookup.TemplateAlias.Split('.')[0].ToUmbracoAlias(StringAliasCaseType.PascalCase);
|
||||
def.ActionName = templateName;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user