I wish to include the parent node within my navigation is this possible? at the moment i have it displaying all of the pages which are under that node however i wish the home node to be included.
Inside the xsl:for-each's select, we are using a pipe symbol to combine the node-sets. So this would give you the homepage, then all the child nodes of the homepage. (I removed the "umbracoNaviHide" stuff, as I assumed since you set the condition to "2", that you weren't using it anyway).
Including Parent node in 2nd level Navigation
I wish to include the parent node within my navigation is this possible? at the moment i have it displaying all of the pages which are under that node however i wish the home node to be included.
this is my code:
This is My Navigation:
Home
Hi newbie, (I'm sure you have a real name?)
Easy way to do this is to set the homepage node as a separate variable, then we can re-use it within the xsl:for-each loop...
Inside the xsl:for-each's select, we are using a pipe symbol to combine the node-sets. So this would give you the homepage, then all the child nodes of the homepage. (I removed the "umbracoNaviHide" stuff, as I assumed since you set the condition to "2", that you weren't using it anyway).
Any questions, let me know.
Cheers, Lee.
Hi Lee
Oooooh i seee! This is really great thanks!
wasnt sure before where you would call the homepage, but now i totally get it!
Thanks for your help!
Newbie :)
is working on a reply...