Hello,
I am using the PageTreeXml class to create some xml of our tree structure. However I am running into a few problems here. The two very important property LinkURL seems to be missing from the xml output.
PageTreeXml xml = new PageTreeXml();
xml.SetAttribute("PageName","{PageName}");
xml.SetAttribute("LinkURL","{LinkURL}");
xml.CreateXml(pages, writer);
//Output
I wonder where I can find out what properties that are valid and will return some value in my xml.
/Johan
All metadata should be prefixed with "Page" so in this case you should add "PageLinkURL". You will not get Indent to work as this is a computed value and not a ordinary property but the value should be the same as counting number of parent XML elements wherever you want to use the data.
PageTreeXml xml = new PageTreeXml(); xml.SetAttribute("PageName","{PageName}"); xml.SetAttribute("LinkURL","{LinkURL}"); xml.CreateXml(pages, writer);
//Output