I am currently using the site map template to generate the lists/sublists for my drop down navigation. The default xslt code only displays for "$currentPage", is there a variable to use for the root page like "$root"?
hi, could you explain a bit more about what you are trying to do here? $currentPage is the page in context $currentPage/child::* is any children of the currentPage. $currentPage/child::[inserttemplatenamehere] is any child of currentPage of a particular template and $currentPage/descendant-or-self::* or ::[inserttemplatenamehere] is the currentPage or any of its children regardless of depth. Hope this helps. Charles :)
Display all sub nodes for homepage on every page
I am currently using the site map template to generate the lists/sublists for my drop down navigation. The default xslt code only displays for "$currentPage", is there a variable to use for the root page like "$root"?
hi, could you explain a bit more about what you are trying to do here? $currentPage is the page in context $currentPage/child::* is any children of the currentPage. $currentPage/child::[inserttemplatenamehere] is any child of currentPage of a particular template and $currentPage/descendant-or-self::* or ::[inserttemplatenamehere] is the currentPage or any of its children regardless of depth. Hope this helps. Charles :)
I actually figured it out, I didn't realize that $currentPage/acestor-or-self::*[@level = 1] will always pull up the sites home page?
It depends on where your home page is, but level 1 is the top node (of which you could have mutilpul) glad you worked it out :)
is working on a reply...