We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26016
    • 561 Posts
    Hi,
    There must be something in the air today... the previous post refers to JQuery as used with Wayfinder. I’ve been reading various posts on that, so I could probably pull that off to make an accordion menu.

    However, I have a request somewhat beyond that... say you have a Wayfinder menu with 2 levels. And you’d like the have the 2nd level be Ajax-y.... not just having an according menu pop out showing level 2, which is very nice, but can also have your 2nd level documents pre-loaded, so that they "instantly" display without another page load?

    Any ideas appreciated.

    Thanks, Samba

    PS: the only thing I’ve seen anything like this was a lonely snippet called Moodjax, which was in pretty rudimentary form, and I could not get to work.

      MODx and Wordpress development
      Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
      • 10449
      • 956 Posts
      This is not so hard to do, but it’s not exactly Wayfinder’s job to preload any content. To load entire content-fields into the page, you would probably rather use Ditto. Just stash the child page contents away in invisible DIVs. The rest is up to JS. I did something similar once, but with tabs, not accordion.
        • 26016
        • 561 Posts
        Ganesh,
        That’s a simple and great idea! I will take it and run with it.

        You’re always one of the smartest people around.

        Thanks again!
          MODx and Wordpress development
          Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4