Hi,
I've almost got a navigation working exactly how I would like using macros/xslt but am just falling a bit short.
My current navigation involves a top navigation namely
News and Events |Business| Contact Us etc (This has been defined by direct links in the template not using xslt)
Upon clicking on one of these, links appear in a left navigation menu to the pages located under each of these nodes from the content tree view. This has been done using the following code
Code:<xsl:for-each select="$currentPage/node [string(data [@alias='umbracoNaviHide']) != '1']">
<a href="{umbraco.library:NiceUrl(@id)}">
<xsl:value-of select="@nodeName"/>
</a>
</xsl:for-each>
For example what my query is that if you were to select News and Events and then a link from the left navigation which in this case contains links for Press Relases, Images and Events is it possible for Press Releases, Images and Events to still remain constant in the left navigation when someone selects one of those sub pages as they fall under the parent node News and Events. In other words for the Parent Nodes sub pages to remain constant instead of trying to pick up sub pages from sub pages.
Currently when a user selects Press Releases there are no links in the left navigation as the navigation is defined from any pages created under the current page (Press Relases. As Press Releases has no sub pages the left menu is blank.
Apologise for my long post and if i have not made sense on what i am trying to achieve.