U4-7786 - Improper casing of Type in Templates

Created by Douglas Robar 19 Jan 2016, 16:06:32 Updated by Stephan 17 Feb 2016, 10:41:35

Duplicates: U4-7747

Seen in 7.4.0 Beta2 (with Models Builder turned on)

  1. Create a document type named "FAQ Area"
  2. Look at the FAQ Area template. The @inherits line will have the following (notice the ) @inherits Umbraco.Web.Mvc.UmbracoTemplatePage

Removing the portion of the @inherits line and calling @Model.Content.GetType() in the template shows that the correct casing should be: @inherits Umbraco.Web.Mvc.UmbracoTemplatePage

This capitalization is unexpected both by the template and also by the rules of PascalCase (at least as far as I understand the rules).

The workaround for now is to either remove the portion of the @inherits line or manually change it as indicated.


Stephan 17 Feb 2016, 10:41:35

Note (because we discussed this with @drobar): tested again on 7.4.0 and the template is now created as

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage<ContentModels.FAqarea>

which works.

Obviously the "FAqarea" name is a bit weird (compared to eg "FaqArea") -- will look into the rules.

Priority: Normal

Type: Bug

State: Duplicate


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 7.4.0

Due in version:


Story Points: