Copied to clipboard

Flag this post as spam?

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


  • daxu 22 posts 28 karma points
    Feb 21, 2009 @ 23:38
    daxu
    0

    spcific display sequence for XSLTNavi

    Hi,

    I am using the XSLTNavi macro to display navitation. But is it possible to display the links in specific sequences?

    For example,
    I have home, news, contact us, publication

    I am not sure how that xsltnavi dicides which one to display first, but looks like it handles the sequence by using the sequence of the pages added to umbraco. Is my feeling right?

    If there anyway I can define the sequence easily?
    e.g. home news conatact us publication

    or

    home contact us publication news


    Many Thanks

  • Daniel Lindstrom 454 posts 271 karma points
    Feb 22, 2009 @ 10:59
    Daniel Lindstrom
    0

    Right after the xsl:for-each in your xsltnavi put xsl:sort, like this:



    It will be sorted the way the nodes are sorted in the back end tree. You change the order of the nodes by right-clicking on a folder in that tree.

    You can replace @sortOrder with something else to sort on other parameters. A google search for 'site:umbraco.org xsl:sort' will give you more info. (the built in search on this forum is not good...)

Please Sign in or register to post replies

Write your reply to:

Draft