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

    Just wondering if there’s an easy way of making main menu items non-clickable when there are sub-menu items present.

    My customer is requireing this, so I’ll probably need to dive into the wayfinder source code and make some changes which I’m not looking forwards to.

    Any advice welcome.
    Thanks
      • 25663 MODX Staff
      • 12,272 Posts
      Look at the template parameters for Wayfinder. There should be one which you can remove the link bits from the template.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 686
        • 24 Posts
        Thanks, I solved it. For those who are interested, I found:

        &parentRowTpl

        From the wiki: "the template chunk for any document that is a folder" - aka documents that have children.

          • 13809
          • 16 Posts
          Excuse me Aicos... could you tell me how did you do that? I have a menu with sections and subsections, but some sections are only for reference, to group the subsections and these sections are not pages... I want that the users view the tittle but I need to disable the link/click.... maybe you can help me.