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
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...)
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
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...)
is working on a reply...