Dynamically Display topics using CSS and javascript

Re: Dynamically Display topics using CSS and javascript

by Gareth J Barnard -
Number of replies: 0
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
Dear Troy,

Appears tricky as the solution in the tread relies in specific sections being hovered over by the mouse. The supplied css just defines the overall behaviour of all sections, which each section then inherits, therefore there is no specific toggle declaration for each section making the creation of a separate menu easier.

I would guess that you would need to somehow include a javascript file in a label which manipulated the DOM and then created a menu based around the specific id's of each section, then a click there would activate the JavaScript with the parameter of the section id and then change the visibility.

Are you not in a position to install my Collapsed Topics format?

Cheers,

Gareth