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
Hi all, I'm new to Umbraco and having a real difficult time....
I'm just wondering if someone can help me out here :'(
I created a navigation, which contains:
Home---About Me------Resume
I want to display Home and About me on the navigation, however it only displays About Me.
is it because Home contains About Me page?
here's my XSLT:
<?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" exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets "><xsl:output method="xml" omit-xml-declaration="yes" /><xsl:param name="currentPage"/><!-- Input the documenttype you want here --><xsl:variable name="level" select="1"/><xsl:template match="/"> <!-- Root Node --> <xsl:variable name="rootNode" select="$currentPage/ancestor-or-self::root" /> <!-- Homepage --> <xsl:variable name="homeNode" select="$rootNode/Kick-Home [@isDoc]" /> <!-- The fun starts here --><xsl:for-each select="$currentPage/ancestor-or-self::* [@level=$level]/* [@isDoc and string(umbracoNaviHide) != '1']"> <a href="{umbraco.library:NiceUrl(@id)}"> <xsl:attribute name="class"> <xsl:text>selected</xsl:text> </xsl:attribute> <xsl:value-of select="@nodeName"/> </a></xsl:for-each></xsl:template></xsl:stylesheet>
here's its page's link: http://umbraco.5am.co/kick.aspx
Thank you so much for reading this and have a great day !
oh! I found a solution !
i just had to add this line into the template !
<div id="nav"> <a href="/">Home</a></div>
Thank you so much Umbraco TV ! you Rock !
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Home page won't appear on my navigation
Hi all, I'm new to Umbraco and having a real difficult time....
I'm just wondering if someone can help me out here :'(
I created a navigation, which contains:
Home
---About Me
------Resume
I want to display Home and About me on the navigation, however it only displays About Me.
is it because Home contains About Me page?
here's my XSLT:
<?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"
exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets ">
<xsl:output method="xml" omit-xml-declaration="yes" />
<xsl:param name="currentPage"/>
<!-- Input the documenttype you want here -->
<xsl:variable name="level" select="1"/>
<xsl:template match="/">
<!-- Root Node -->
<xsl:variable name="rootNode" select="$currentPage/ancestor-or-self::root" />
<!-- Homepage -->
<xsl:variable name="homeNode" select="$rootNode/Kick-Home [@isDoc]" />
<!-- The fun starts here -->
<xsl:for-each select="$currentPage/ancestor-or-self::* [@level=$level]/* [@isDoc and string(umbracoNaviHide) != '1']">
<a href="{umbraco.library:NiceUrl(@id)}">
<xsl:attribute name="class">
<xsl:text>selected</xsl:text>
</xsl:attribute>
<xsl:value-of select="@nodeName"/>
</a>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
here's its page's link: http://umbraco.5am.co/kick.aspx
Thank you so much for reading this and have a great day !
oh! I found a solution !
i just had to add this line into the template !
<div id="nav">
<a href="/">Home</a>
</div>
Thank you so much Umbraco TV ! you Rock !
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.