I am building an accordion menu for a course format that takes the Moodle Book Table of Contents and turns off sub chapters unless the student has clicked on the main chapter above those sub chapters.
If anyone has already done this, I would appreciate suggestions.
I have had a look at the Admin & Navigation blocks, but the Yui javascript code is massive overkill and also designed for block menus.
I don't mind modifying the code in Books (will create a new resource) or Course Format, but the question is how to implement a simple accordion in the menu? Examples appreciated