Hi all,
Maybe I’ve missed this but I don’t see any discussions about using the mootools accordion function with Wayfinder. Examples seem to be either script.aculo.us. or JQuery. Anyone able to contribute insights, pointers etc.? Seems daft to add yet another js library when the functionality appears in the ’default’.
Regards
-
MODX Staff
- 12,272 Posts
MODx doesn’t limit what you can implement on the front end. Use Wayfinder and custom templates to output the right format then attach the mootools calls as needed.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
Thanks for the prompt response. I’m also hoping for some guidance to avoid pitfalls etc., e.g. did that but what every you do don’t do this.... to accelerate the learning curve.
Regards
PS Am finding MODx very flexible. Hope to put up my first site in the wild & here in a few days
OK guess I’m missing the blindingly obvious. How do I get the toggle function to work on MODx ’containers’? To expand, if I have a menu structure such as :-
Economics {container, but also link to a page}
--------> Data
-------->Analysis
... ...
Metric {next container but also a link}
then when I click the Economics section I see for a moment my expanded menu and then the economic page loads and the menu is back to closed. Do I need to create a non-link element {section header} in menu, and if so how {weblink doesn’t seem to do this}? Further looking forward how do I keep the status of the menu {what should be open, what closed} from page to page?
Regards
PS As I’ve been trawling the net on this I note that the discussions are almost all about single page not multi-page.
-
☆ A M B ☆
- 24,524 Posts
The accordion javascript works on the page currently being viewed in the browser. Consider that you are requesting and receiving a different page than the one in which you "opened" the accordion. Perhaps you can take advantage of the "active" class that is given to the parent once you’ve gone to the new page to open the accordion?