We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27302
    • 154 Posts
    I’m trying to get the hang of Wayfinder at the moment, following some of the examples, particularly the Accordian menu example on Wiki.

    I cannot get it to work however. I have included the JS etc, but I still just get a static display of all my documents.

    What I really want to do is to make a menu inside a document that looks like the document tree in the ModX Manager. I don’t want any fancy flyouts, just the ability to click on one part of the tree and then have the sub documents for it appear, and then disappear again when the root document is clicked on. I can’t seem to find any hints on how to achieve this, especially as I do not want to use Javascript if possible.

    Can anyone send me to any links that might have some tutorials on how to make this type of menu? I’ve checked the Muddypaws website, but there doesn’t appear to be anything similar to my requirements.
      • 4310
      • 2,310 Posts
      Like this ?
        • 27302
        • 154 Posts
        Yep, exactly like that! smiley

        Was this done with Wayfinder?

        Only trouble is that it uses Javascript. Would there be a way to do it without?
          • 4310
          • 2,310 Posts
          I wrote a snippet to do it rather than Wayfinder.
          Not sure you could do it as CSS only, had a quick Google for one but they all have some JS.
          I’ve uploaded it to the In Development forum and put a link in my signature.
            • 27302
            • 154 Posts
            Excellent, many thanks! smiley
              • 10449
              • 956 Posts
              With JS-only menus like these, I’d make sure there is an alternative for searchbots (i.e. <noscript>regular links here</noscript>) as well... could probably be automated as well.