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:
-Content
- Home
- Beroepsgroep
- Nieuwsbanner
- Nieuws
- Etc.
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?
Default xslt sitemap
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:
Content
+ Navigation
+ News
+ Members
Sitemap
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.
Hey Partick,
Could you post a screenshot of your content structure?
Rich
My content structure:
Hey Partick,
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:
-Content
- Home
- Beroepsgroep
- Nieuwsbanner
- Nieuws
- Etc.
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.
Regards
Rich
Hi Rich,
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?
Thanks, Patrick
Hey Patrick,
Sorry, the forum broke the formattin.
Let me try again:
-Content
--- Home
--------- Beroepsgroep
--------- Nieuwsbanner
--------- Nieuws
--------- Etc.
Rich
Clear, I'm going to restructure, thanks for your help!
Patrick
is working on a reply...