Help on Nodes Options
dajarvo
Posted: Wednesday, February 06, 2008 11:50:50 AM
Rank: Newbie

Joined: 1/29/2008
Posts: 11
Location: South Wales
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.






dajarvo
Posted: Wednesday, February 06, 2008 12:26:54 PM
Rank: Newbie

Joined: 1/29/2008
Posts: 11
Location: South Wales
Sorry code ahould be

<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>
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.