Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
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 " "> ]>
<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>
Thanks alot Marcio for your time.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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.
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 " "> ]>
<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>
Thanks alot Marcio for your time.
is working on a reply...