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 everybody,
i have been working on a breadcrumb...and the only problem im getting is the link "home". Is there an attribute i can use to make it return directly on my home page, instead of writing the link itself??
here is my XSLT:
<xsl:template match="/"> <xsl:if test="$currentPage/@level > $minLevel"> <ul class="breadcrumb pathText">
-------------------------------------
<li class="smlPathBx1"><a href="../default.aspx">HOME</a></li>
-----------------------------------------------
<li class="smlPathBx2"></li> <xsl:for-each select="$currentPage/ancestor::* [@level > $minLevel and @level <= $maxLevel and string(umbracoNaviHide) != '1']"> <li class="smlPathBx3"> <a href="{umbraco.library:NiceUrl(@id)}"> <xsl:value-of select="@nodeName"/> </a> </li> <li class="smlPathBx4"></li> </xsl:for-each>
Nite,
Instead of writing
Try This
<li class="smlPathBx1"><a href="/">HOME</a></li>
It should return to the root of your website
Kool...it works!
Right now i have a virtual directory problem...but im sure online it will be fine!
Thanks Fuji :)
Yes on virtual directory it will redirect you to the root.
/Fuji
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
return directly to the root
hi everybody,
i have been working on a breadcrumb...and the only problem im getting is the link "home". Is there an attribute i can use to make it return directly on my home page, instead of writing the link itself??
here is my XSLT:
<xsl:template match="/">
<xsl:if test="$currentPage/@level > $minLevel">
<ul class="breadcrumb pathText">
-------------------------------------
<li class="smlPathBx1"><a href="../default.aspx">HOME</a></li>
-----------------------------------------------
<li class="smlPathBx2"></li>
<xsl:for-each select="$currentPage/ancestor::* [@level > $minLevel and @level <= $maxLevel and string(umbracoNaviHide) != '1']">
<li class="smlPathBx3">
<a href="{umbraco.library:NiceUrl(@id)}">
<xsl:value-of select="@nodeName"/>
</a>
</li>
<li class="smlPathBx4"></li>
</xsl:for-each>
Nite,
Instead of writing
<li class="smlPathBx1"><a href="../default.aspx">HOME</a></li>
Try This
<li class="smlPathBx1"><a href="/">HOME</a></li>
It should return to the root of your website
Kool...it works!
Right now i have a virtual directory problem...but im sure online it will be fine!
Thanks Fuji :)
Yes on virtual directory it will redirect you to the root.
/Fuji
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.