Copied to clipboard

Flag this post as spam?

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


  • Steve Jones 36 posts 84 karma points
    Jul 04, 2011 @ 12:12
    Steve Jones
    0

    Top Navigation Ordering

    Can't see it in the package is there any ordering or max elements so that the nav can be controlled a bit more?

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jul 04, 2011 @ 12:22
    Dirk De Grave
    0

    Hi Steve,

    How about adding it yourself, should be quite simple. Make sure to do the ordering before getting max elements

    <xsl:sort select="field" type="type" order="ascending|descending" />

     

    Cheers,

    /Dirk

  • Steve Jones 36 posts 84 karma points
    Jul 04, 2011 @ 14:27
    Steve Jones
    0

    Thanks for the fast respone.

    Max Elements??

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jul 04, 2011 @ 14:36
    Dirk De Grave
    0

    C'mon Steve, LMGTFY... need to use the position() xslt function...

    <xsl:for-each select="$yourNodeSet">
    <xsl:if test="position() <= $yourMaxElements">
    <!-- process element -->
    </xsl:if>
    </xsl:for-each>

    Cheers,

    /Dirk

  • Neil Norpa 24 posts 44 karma points
    Jul 04, 2011 @ 14:59
    Neil Norpa
    0

    Question if were are using this for two navigations both page and site how do we appliy two separate css styles per type?

Please Sign in or register to post replies

Write your reply to:

Draft