thanks for the quick reply, but for some reason that replaces the top nav with the first item in my content tree and the item dropping under is my next page.
eg the only llink at the top is CONSULTANT and the navigation underneath is DEVELOPMENT.
basically I want the following to be top level (Which I can do no problem):
Consulting
Development
Insight
About Us
Contact Us
And what I need from the child nodes is when I say click on the "development" link the "development" child nodes appear in the list underneath and when I click the "Insight" link the "insight" child nodes appear.
Above code snippet will not render the second level nav if you're on the 'Runway Homepage'. If you click on any of the nav items (Consulting, Development, ...), it will.
Getting child pages from parent node
Hi All,
I am relativley new to XSLT and I am looking to build a navigation with the top level and if there are 2nd levels retrieve them and place into a
list within the
The code I have so far below is:
[code]
[/code]
this gets my top level nav and builds my second level but returns all my second level not the ones specified for that link.
I have built the HTML version here http://templates.precedenthost.co.uk/gap/ - click on the top level nav for an example
Any help would be greatly appreciated.
Tom
Hi,
I'm thinking you need to replace
[code]
[/code]
with
[code][/code]
($currentPage replaced with '.' sign, meaning to iterate child nodes of the current node processed in the outer for-each loop)
Does that do the trick?
Regards,
/Dirk
thanks for the quick reply, but for some reason that replaces the top nav with the first item in my content tree and the item dropping under is my next page.
eg the only llink at the top is CONSULTANT and the navigation underneath is DEVELOPMENT.
Tom
Tom,
I now think it's better to post the content tree structure and the current output/desired output...
Regards,
/Dirk
This is the tree structure
basically I want the following to be top level (Which I can do no problem):
Consulting
Development
Insight
About Us
Contact Us
And what I need from the child nodes is when I say click on the "development" link the "development" child nodes appear in the list underneath and when I click the "Insight" link the "insight" child nodes appear.
I hope I have described it ok
Tom
Ok got it now, understand the issue.
Let's dissect the xslt...
[/code]
Above code snippet will not render the second level nav if you're on the 'Runway Homepage'. If you click on any of the nav items (Consulting, Development, ...), it will.
Hope this helps.
Regards,
/Dirk
cheers Dirk, that worked a treat. Thanks
is working on a reply...