Aha, string needs to start all the way to the left to appear nicely in the editor

This commit is contained in:
Sebastiaan Janssen
2012-11-28 08:41:54 -01:00
parent e6b162f4f6
commit 577b989c4c

View File

@@ -106,9 +106,9 @@ namespace umbraco.cms.businesslogic.template
if (string.IsNullOrEmpty(design))
{
design = @"@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{
Layout = null;
}";
@{
Layout = null;
}";
if (template.MasterTemplate > 0)
design = design.Replace("null", string.Format("\"{0}.cshtml\"", new Template(template.MasterTemplate).Alias.Replace(" ", "")));