We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16610
    • 634 Posts
    Is there something wrong with DropMenu snippet’s parameter selfAsLink?

    I tried to use the snippet with parameter selfAsLink:
    [!DropMenu?&selfAsLink=false!] and [!DropMenu?&selfAsLink=true!]

    The results were odd. Here class disappeared completely from the generated HTML but nothing else happened. Without selfAsLink parameter everything else is working fine but the problem is that active submenu items are still links and only active top menu item is not a link.
      Mikko Lammi, Owner at Maagit
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Yeah, when selfaslink is set to true, it doesn’t set the "here" class at all.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 25663 MODX Staff
        • 12,272 Posts
        It was intentionally done that way but I’ll have to look at it to revise it as needed. Any other suggestions? wink
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
          • 16610
          • 634 Posts
          Quote from: rthrash at Nov 27, 2005, 04:07 PM

          Any other suggestions? wink

          Yes! Leave the "here" class as it is with default selfAsLink parameter?

          And thank you very much for the quick reply.
            Mikko Lammi, Owner at Maagit
            • 4095
            • 372 Posts
            Quote from: rthrash at Nov 27, 2005, 04:07 PM

            It was intentionally done that way but I’ll have to look at it to revise it as needed. Any other suggestions? wink

            I think it should always have the HERE class so you can use it to apply styles.
              [img]http://www.emanz.ac.nz/assets/images/logo/emanz-icon_16x16.gif[/img] Emergency Management Academy of New Zealand [br] http://www.emanz.ac.nz[br][br]MODx Sandbox Login: sandbox Password: castle [br]
              Admin Sandbox Login: sandbox Password: castle