WORK IN PROGRESS, GET THE STABLE SOURCE FROM THE DOWNLOADS TAB
Fixes 26071 + 26072 [TFS Changeset #63633]
This commit is contained in:
@@ -1102,6 +1102,11 @@ namespace umbraco.cms.businesslogic.web
|
||||
x.Attributes.Append(addAttribute(xd, "nodeTypeAlias", ContentType.Alias));
|
||||
x.Attributes.Append(addAttribute(xd, "path", Path));
|
||||
|
||||
if (!UmbracoSettings.UseLegacyXmlSchema)
|
||||
{
|
||||
x.Attributes.Append(addAttribute(xd, "isDoc", ""));
|
||||
}
|
||||
|
||||
if (Deep)
|
||||
{
|
||||
//store children array here because iterating over an Array object is very inneficient.
|
||||
|
||||
@@ -96,13 +96,14 @@ namespace umbraco.presentation.webservices
|
||||
try
|
||||
{
|
||||
// Check if there's any documents yet
|
||||
if (content.Instance.XmlContent.SelectNodes("/root/node").Count > 0)
|
||||
string xpath = UmbracoSettings.UseLegacyXmlSchema ? "/root/node" : "/root/*";
|
||||
if (content.Instance.XmlContent.SelectNodes(xpath).Count > 0)
|
||||
{
|
||||
XmlDocument macroXML = new XmlDocument();
|
||||
macroXML.LoadXml("<macro/>");
|
||||
|
||||
XslCompiledTransform macroXSLT = new XslCompiledTransform();
|
||||
page umbPage = new page(content.Instance.XmlContent.SelectSingleNode("//node [@parentID = -1]"));
|
||||
page umbPage = new page(content.Instance.XmlContent.SelectSingleNode("//* [@parentID = -1]"));
|
||||
|
||||
XsltArgumentList xslArgs;
|
||||
xslArgs = macro.AddMacroXsltExtensions();
|
||||
|
||||
Reference in New Issue
Block a user