We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2396
    • 101 Posts
    Hi,

    Is there a way of using Wayfinder to set the level of the menu as a link class in the generated code? (in red below)

    i.e. for a drop-menu to output –

    ...
    <li class="menu3"><a href="index.php?id=3" title="About Us">About Us</a>
    <ul id="dropnav">
    <li class="menu10"><a href="index.php?id=10" class="level2" title="What we do">What we do</a></li>
    </ul>
    </li>
    ...

    I can get everything else to work as I have written it above, except for specifying JUST the level as a link class. ( I can get it along with the "menu10" by using the [+wf.classnames+], but really want only the level of the submenu to be included?

    Thanks in advance.
      • 33337
      • 3,975 Posts
      Use: &levelClass
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link