<!-- Input the documenttype you want here --> <xsl:variable name="level" select="1"/>
<xsl:template match="/">
<xsl:if test="$currentPage/@id = $currentPage/ancestor-or-self::* [@level=$level]/@id"> <div class="column"> <h1> <a href="#"> Home Page - I don't know what to write here </a> </h1> </div> </xsl:if>
I have like 3 pages that are created under homepage which have checked property do not show in menu so for me they are like pages under homepage( i don't know other solution) and I have 3 more pages that are under HomePage, they are childs. Two of these 3 pages have pages underneath, too.
And this sitemap( as I can call it) is part of the footer, so will have to show on each page.
Yes they are having 'Hide in navigation on Yes' because I don't want them to be part of the menu. I have only 4 pages of Level 1 (including First Page - About Patient Direct)
How to display sitemap/navigation for a site using xslt?
I have a website that has pages and subpages as in the image attached.
Some of the subpages belong to First pagge(About Patient Direct), they have setted 'do not show in menu'.
All right I want to make an xslt file that will generate an html content like this:
Menu Item 1 (including Home page - About Patient Direct)
-submenu page 1 1
Menu Item 2 (including Home page - About Patient Direct)
-submenu page 2 1
-submenu page 2 2
This is what I have so far
Hi Adrian,
If am right you wan to be able to display the whole structure and have the Homepage as well display??
//fuji
That is correct.
I have like 3 pages that are created under homepage which have checked property do not show in menu so for me they are like pages under homepage( i don't know other solution) and I have 3 more pages that are under HomePage, they are childs. Two of these 3 pages have pages underneath, too.
And this sitemap( as I can call it) is part of the footer, so will have to show on each page.
Thanks a lot, Fuji for your help.
When you say you have the 3 pages pages checked is it with property umbracoNaviHide ?
If so you need to unchecked them to be able to display those Urls.
Yes they are having 'Hide in navigation on Yes' because I don't want them to be part of the menu. I have only 4 pages of Level 1 (including First Page - About Patient Direct)
From the picture you posted can you tell us what you want are the urls and page name you want to display in your naviagation?
Sorry am a bite confused what you are trying to display here.. :)
This is what the client wants to have in footer
This image is taken from desgin so the names are not the same as is now. Hoever that doesn't matter.
This is the structure of the site:
Now: according to my content, I want a list like this:
I hope now I was clear enough :)
I finally did it. You can find solution at
http://how-to-code-net.blogspot.ro/2012/07/how-to-create-sitemap-for-website-in.html
is working on a reply...