We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24183
    • 19 Posts
    Hi!
    I use the DropMenu snippet on my site and I don’t use selfAsLink.
    The top-level items works fine, and they get no <a> tag when active (And so I want it), but in level 2 items where the active one is a folder, it still has an <a> tag, and then when I select a child item (which is not a folder) everything is ok (no <a> tag).
    Why is this?

    First example (working): (Item 2 Tjänster is active)
    <ul class="navMenu">
    <li><a href="index.html" title="Startsidan">Startsidan</a></li>
        <li class="here">Tjänster                  <!-- THIS ITEM IS ACTIVE! -->
    <ul>
    <li><a href="tjanster/support.html" title="Support">Support</a></li>
    <li><a href="tjanster/datorer.html" title="Datorer">Datorer</a></li>
    <li><a href="tjanster/webb.html" title="Webb">Webb</a></li>
    <li class="last"><a href="tjanster/video.html" title="Videoproduktion, Videoöverföring och Videoredigering">Video</a></li>
    </ul>
    </li>
    
    <li><a href="portfolio.html" title="Portfolio">Portfolio</a></li>
    <li><a href="kontakta-oss.html" title="">Kontakt</a></li>
    <li><a href="lankar.html" title="Länkar">Länkar</a></li>
    <li class="last"><a href="om-qson.html" title="">Om Qson</a></li>
    </ul>

    Second example (Not working?) Tjänster->Webb is selected
    						<ul class="navMenu">
    <li><a href="index.html" title="Startsidan">Startsidan</a></li>
    <li class="here"><a href="tjanster.html" title="Våra Tjänster">Tjänster</a>
    <ul>
    <li><a href="tjanster/support.html" title="Support">Support</a></li>
    <li><a href="tjanster/datorer.html" title="Datorer">Datorer</a></li>
        <li class="here"><a href="tjanster/webb.html" title="Webb">Webb</a>   <!-- THIS ONE IS ACTIVE, BUT IS HAS AN <A>-tag -->
    <ul>
    <li class="last"><a href="tjanster/webb/test.html" title="test">Test</a></li>
    
    </ul>
    </li>
    <li class="last"><a href="tjanster/video.html" title="Videoproduktion, Videoöverföring och Videoredigering">Video</a></li>
    </ul>
    </li>
    <li><a href="portfolio.html" title="Portfolio">Portfolio</a></li>
    <li><a href="kontakta-oss.html" title="">Kontakt</a></li>
    <li><a href="lankar.html" title="Länkar">Länkar</a></li>
    <li class="last"><a href="om-qson.html" title="">Om Qson</a></li>
    </ul>


    And if I select the Tjänster->Webb->Test, It works again (ie. no <a>-tag)
      • 7923
      • 4,213 Posts
      Yes, known bug. Look for a fix here. Also look at this for other possible fixes if you are going to use dropmenu. There is a new menubuilder on the block though, Wayfinder. It will be the successor for dropmenu and is allready at it’s beta stage better and more stable snippet than dropmenu. But dropmenu is perfectly usable too. It’s up to you which you use, but I don’t think that the bugs in dropmenu will be fixed anymore, because in the next release of MODx, it will be replaced by Wayfinder, I think.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 24183
        • 19 Posts
        OK. Thanx.
        I’ll try it later.