We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12410
    • 353 Posts
    This appears to be an acceptable solution:

    <li [[+wf.classes]]><a href="[[*id]]" title="[[+wf.title]]" [[+wf.attributes]]><span>[[+wf.linktext]]</span></a>[[+wf.wrapper]]</li> 


    If user clicks on parent link it just refreshes/calls the current page. Child links work as normal and call their respective page.

    see
    a href="[[*id]]"


    in the above code

    You could also work with this http://www.kunane.com/modx/wayfinder-nested-accordion.html#jfab1e7fb8 where by the parent is automatically disabled. Alter the css to float the li’s left maybe if you want a horizontal menu. It’s a v useful accordion menu. For modx revo use the double square bracket syntax and remove the rightmost + in the chunk syntax

    revo syntax



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