Copied to clipboard

Flag this post as spam?

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


  • Nite 9 posts 29 karma points
    May 04, 2011 @ 11:42
    Nite
    0

    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 &gt; $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 &gt; $minLevel and @level &lt;= $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>

  • Fuji Kusaka 2203 posts 4220 karma points
    May 04, 2011 @ 11:45
    Fuji Kusaka
    1

    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

     

  • Nite 9 posts 29 karma points
    May 04, 2011 @ 12:10
    Nite
    0

    Kool...it works!

    Right now i have a virtual directory problem...but im sure online it will be fine!

    Thanks Fuji :)

  • Fuji Kusaka 2203 posts 4220 karma points
    May 04, 2011 @ 12:21
    Fuji Kusaka
    0

    Yes on virtual directory it will redirect you to the root.

     

    /Fuji

  • 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.

Please Sign in or register to post replies