Multi-level nav with XSLT, displaying children of multiple parents
I am looking for a way to display links in a sidebar that display each parent node and its children. It is easy enough to display one set of parents and children, but I am having trouble getting multiples to work. This is the output goal:
If you hover over the "About" tab on the horizontal nav, you'll see that there are two sets of links, one under "Camp Qwanoes" and another under "Briercrest College & Seminary". These two are the parent folders, both under "About". I want to display both sets of child nodes in the side menu when viewing on of the pages in the About section.
As far I can see you are very close. If I should guess you are missing selecting descendant in subMenuTopLevelNodes... some thing like <xsl:variable name="subMenuTopLevelNodes" select="$currentPage/ancestor-or-self::* [@level = 2]/descendant::* [@isDoc and umbracoNaviHide != 1]"/>
Multi-level nav with XSLT, displaying children of multiple parents
I am looking for a way to display links in a sidebar that display each parent node and its children. It is easy enough to display one set of parents and children, but I am having trouble getting multiples to work. This is the output goal:
<sidebar>
Parent 1
-- child 1
-- child 2
-- child 3
Parent 2
-- child 1
-- child 2
-- child 3
</sidebar>
I have this working part way, thanks to a solution posted by Sune Jepsen and Thijs Kuipers at http://our.umbraco.org/forum/developers/xslt/15660-multi-level-menu, but it doesn't quite do what I want, and I'm having trouble because I haven't worked with xsl:call-template before.
The output of the XSLT below is:
<sidebar>
Parent 1
-- child 1
-- child 2
-- child 3
Parent 2 (without any children beneath it)
</sidebar>
Here is the XSLT I am using: My guess is that something needs to be changed in the nested xsl:choose clauses, but I'm not sure where to go from here.
Your assistance is enormously appreciated!
PS: if it would help to see what I'm working on, the XSLT file above is employed here: http://kaleo.briercrest.ca/about/camp-qwanoes/about-qwanoes/
If you hover over the "About" tab on the horizontal nav, you'll see that there are two sets of links, one under "Camp Qwanoes" and another under "Briercrest College & Seminary". These two are the parent folders, both under "About". I want to display both sets of child nodes in the side menu when viewing on of the pages in the About section.
Hi Luke
I think this link could help you: http://pimpmyxslt.com/axesviz.aspx?contextNode=1066&axis=descendant#screen
As far I can see you are very close. If I should guess you are missing selecting descendant in subMenuTopLevelNodes... some thing like <xsl:variable name="subMenuTopLevelNodes" select="$currentPage/ancestor-or-self::* [@level = 2]/descendant::* [@isDoc and umbracoNaviHide != 1]"/>
Hope it works out.
is working on a reply...