Copied to clipboard

Flag this post as spam?

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


  • MC 19 posts 89 karma points
    Feb 17, 2014 @ 20:48
    MC
    0

    How to change navigation menu list to display ?

    Hello All,

    I have some peoblem try to move nevigation menu. I have example of my 

    Here is my nevigation menu  ---.>  Home    Sponsor     FAQ   Rule  Search   Gallery 

    Here is my  content 

    Home

    -------> Sponsor

    -------->FAQ

    --------->Rule

    --------->Search

    --------->Gallery

    Is there any way that i can change my nevigation to  Home   FAQ  Sponsor    Rule  Search   Gallery 

    for the nevigation link we used XSLT macro to to get nevigation to display.

    Thank you in advance.

     

     

  • Marcio Goularte 388 posts 1360 karma points
    Feb 17, 2014 @ 21:22
    Marcio Goularte
    101

    Hi,

    In the content tree go to  node Home > right click > Sort. Create the sort you want. Then create the macro normally like this code:

    <?xml version="1.0" encoding="UTF-8"?>

    <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>

    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon"  xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" xmlns:Examine="urn:Examine" xmlns:google.maps="urn:google.maps" 

    exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets Examine google.maps ">

    <xsl:output method="xml" omit-xml-declaration="yes" />

    <xsl:param name="currentPage"/>

    <!--get root level -->

    <xsl:variable name="level" select="1"/>

    <xsl:template match="/">

    <ul>

    <li><a href="/">Home</a></li>

    <xsl:for-each select="$currentPage/ancestor-or-self::* [@level=$level]/* [@isDoc and string(umbracoNaviHide) != '1']">

    <xsl:sort select="@sortOrder" data-type="number" order="descending" />

    <li>

    <a href="{umbraco.library:NiceUrl(@id)}">

    <xsl:value-of select="@nodeName"/>

    </a>

    </li>

    </xsl:for-each>

    </ul>

    </xsl:template>

    </xsl:stylesheet>

     

  • MC 19 posts 89 karma points
    Feb 18, 2014 @ 21:14
    MC
    0

    Thanks alot Marcio for your time.  

Please Sign in or register to post replies

Write your reply to:

Draft