Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have created a site structure in which my sitemap is on another level than my nodes which I would like to see within my sitemap. Like this:
The default xslt of the sitemap, generated by Umbraco selects $currentPage/ancestor-or-self::* [@isDoc and @level=1]
Problem is my Sitemap node can never retrieve the other nodes through currentPage/ancestor-or-self.
Being farely new to Umbraco and xslt I hope somebody can help me to rewrite this, so it starts building the sitemap from the root node.
Nay help is welcome, greetings, Patrick.
Could you post a screenshot of your content structure?
My content structure:
I thought that could be the case, unless you have a specific reason to have your content structured like above I would strongly consider restructuring your content like this:
This is how the sample xslt's expect your content structure to be, and if you restructure like this you will find the sitemap (and many other sample XSLT files) work as expected.
Maybe I don't fully understand, but the structure as typed above seems to be the same as the one in my screenshot.Or is it the solution to remove the Sitemap from the current location and have it integrated within the structure?
Sorry, the forum broke the formattin.
Let me try again:
Clear, I'm going to restructure, thanks for your help!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted