Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Garrett Fisher 341 posts 496 karma points
    Nov 03, 2009 @ 17:52
    Garrett Fisher
    0

    Displaying a 3rd Tier in the Subnavi

    Hi,

     

    In my site there are pages which are children of the subnav.  I'd like to display those as well, as a nested list underneath their respective parents.  I'm sure this is easy in XSLT but a;; the same I'm new to this and am having trouble figuring this out.  Here is the current code for the subnav:

    <xsl:template match="/">

    <xsl:variable name="rootTextpageNode" select="$currentPage/ancestor-or-self::node [@level = 2 and @nodeTypeAlias = 'CWS_Textpage']" />

    <xsl:if test="$rootTextpageNode/@nodeName != 'Footer Nav' and $rootTextpageNode/@nodeName != 'Utility Nav'">
    <ul>
    <li>
    <h3>
    <xsl:value-of select="$rootTextpageNode/@nodeName"/>
    </h3>
    </li>
    <xsl:for-each select="$rootTextpageNode/node">
    <li>
    <xsl:if test="$currentPage/ancestor-or-self::node/@id = current()/@id">
    <xsl:attribute name="class">
    <xsl:text>selected</xsl:text>
    </xsl:attribute>
    </xsl:if>
    <a href="{umbraco.library:NiceUrl(current()/@id)}">
    <span>
    <xsl:value-of select="current()/@nodeName"/>
    </span>
    </a>
    </li>
    </xsl:for-each>
    </ul>
    </xsl:if>

    </xsl:template>

    Thanks in advance,.

    Garrett

  • Rich Green 2246 posts 4006 karma points
    Nov 03, 2009 @ 17:56
    Rich Green
    0

    Hey Garrett,

    This should work for you http://our.umbraco.org/projects/cogworks---flexible-navigation

    Hope it helps,

    Rich

  • Garrett Fisher 341 posts 496 karma points
    Nov 03, 2009 @ 18:10
    Garrett Fisher
    0

    Fantastic.  Yes, this wikll do the trick.  Thanks so much!

    //Garrett

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies