diff --git a/src/Umbraco.Web/Editors/ContentTypeController.cs b/src/Umbraco.Web/Editors/ContentTypeController.cs index 55724aa0a8..bbf441a5d6 100644 --- a/src/Umbraco.Web/Editors/ContentTypeController.cs +++ b/src/Umbraco.Web/Editors/ContentTypeController.cs @@ -188,7 +188,12 @@ namespace Umbraco.Web.Editors if (template == null) { template = new Template(ctSave.Name, ctSave.Alias); - template.Content = ViewHelper.GetDefaultFileContent(modelClassName: ctSave.Name.ToSafeAlias(false)); + + //ensure is safe and always pascal cased, per razor standard + var classname = ctSave.Name.ToSafeAlias(false); + classname = char.ToUpper(classname[0]) + classname.Substring(1); + + template.Content = ViewHelper.GetDefaultFileContent(modelClassName: classname); Services.FileService.SaveTemplate(template); }