We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7241
    • 1 Posts
    Similarly to Loter’s Post http://modxcms.com/forums/index.php/topic,39025.msg235373.html#msg235373 , I don’t want the parent to be a link when there is active children, and I have this working, but I would also like only one sub-menu to display at at time.

    So in Loter’s example, when you click on Products the sub-menu is displayed and the About Us sub-menu is hidden.

    Home
    Products
    Product one
    Product two
    Product three
    About Us
    Contact Us


    Similarly if you click on About Us, the Products sub-menu is hidden and the About Us sub-menu displayed.

    Home
    Products
    About Us
    Page one
    Page two
    Page three
    Contact Us


    Clicking on either parent should not take you to a new page, simple display the sub-menu.

    I’ve tried Loter’s solution by using

    &parentRowTpl

    <li[+wf.classes+]>
    <a href="#" title="[+wf.title+]">[+wf.linktext+]</a>
    [+wf.wrapper+]
    </li>

    and using &hideSubMenus=`1` in my wafinder call, but without any luck.

    I would really appreciate if anyone could point me in the right direction.