Copied to clipboard

Flag this post as spam?

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


  • Frank Beerens 10 posts 30 karma points
    Dec 13, 2010 @ 21:14
    Frank Beerens
    0

    double menu item

    hi i use this code

    <!-- Input the documenttype you want here -->
        <xsl:variable name="level" select="1"/>

        <xsl:template match="/">

            <!-- The fun starts here -->
            <ul class="menu">
                  <li>
      <a href="/umbraco/soft-solutions-bv-home.aspx">Home</a>
                    </li>
                <xsl:for-each select="$currentPage/ancestor-or-self::* [@level = $level]/* [string(umbracoNaviHide) != '1' and @isDoc]">
                    <li>
                        <a href="{umbraco.library:NiceUrl(@id)}">
                            <xsl:value-of select="@nodeName"/>
                        </a>
                    </li>
                </xsl:for-each>
            </ul>


    i get some item double in my menu.

     

    The contents looks like this

     

    -home
      - Diensten
      - Support
      - Contract

    Diensten is the double one.

    you can see it on test.soft-solutions.nl/umbraco

    why is it double ? 

     

     

     

  • Rich Green 2246 posts 4008 karma points
    Dec 13, 2010 @ 21:19
    Rich Green
    0

    Hi Frank,

    Can't see anything wrong with your code.

    One thing it might be worth trying is right clicking the top 'content' node and selecting 'republish entire site' as there maybe a duplicate in the cached xml.

    You can check this by opening the umbraco.config file in your App_Data directory.

    If not, it might be useful if you could post an image of your content structure in Umbraco

    Hope that helps

    Rich 

Please Sign in or register to post replies

Write your reply to:

Draft