diff --git a/src/umbraco.cms/businesslogic/Packager/Installer.cs b/src/umbraco.cms/businesslogic/Packager/Installer.cs index 9ab0287ca6..69b1c5899a 100644 --- a/src/umbraco.cms/businesslogic/Packager/Installer.cs +++ b/src/umbraco.cms/businesslogic/Packager/Installer.cs @@ -714,6 +714,15 @@ namespace umbraco.cms.businesslogic.packager dt.Thumbnail = xmlHelper.GetNodeValue(n.SelectSingleNode("Info/Thumbnail")); dt.Description = xmlHelper.GetNodeValue(n.SelectSingleNode("Info/Description")); + // Allow at root (check for node due to legacy) + bool allowAtRoot = false; + string allowAtRootNode = xmlHelper.GetNodeValue(n.SelectSingleNode("Info/AllowAtRoot")); + if (!String.IsNullOrEmpty(allowAtRootNode)) + { + bool.TryParse(allowAtRootNode, out allowAtRoot); + } + dt.AllowAtRoot = allowAtRoot; + // Templates ArrayList templates = new ArrayList(); foreach (XmlNode tem in n.SelectNodes("Info/AllowedTemplates/Template")) diff --git a/src/umbraco.cms/businesslogic/web/DocumentType.cs b/src/umbraco.cms/businesslogic/web/DocumentType.cs index 882ba8d154..04cc8ec314 100644 --- a/src/umbraco.cms/businesslogic/web/DocumentType.cs +++ b/src/umbraco.cms/businesslogic/web/DocumentType.cs @@ -348,6 +348,7 @@ namespace umbraco.cms.businesslogic.web info.AppendChild(XmlHelper.AddTextNode(xd, "Icon", IconUrl)); info.AppendChild(XmlHelper.AddTextNode(xd, "Thumbnail", Thumbnail)); info.AppendChild(XmlHelper.AddTextNode(xd, "Description", Description)); + info.AppendChild(XmlHelper.AddTextNode(xd, "AllowAtRoot", AllowAtRoot.ToString())); //TODO: Add support for mixins! if (this.MasterContentType > 0)