acusti.ca

MooAccordion Show/Hide
(in articles) Joomla plugin

MooAccordion makes it very easy to add MooTools accordion slides (show/hide blocks) to any article, which can be used to organize and display content more effectively (like in a FAQ page). The syntax is simple:

{mooblock=Trigger Title (used to trigger the slide)}
Content of the slide block...
{/mooblock}
Features include:

The plugin is similar to JoomlaWork‘s Tabs & Slides (in content items) Plugin, the plugin I originally used before being inspired to write this one. My biggest problem with the JW plugin was that when I added the plugin syntax into an article, the plugin would create invalid markup from it, because the WYSIWIG editor automatically wrapped it in a <p> tag. Also, it seemed foolish to use an old accordion script rather than the built-in accordion plugin that Joomla already comes with. This plugin solves those issues, and does so efficiently and robustly.

Note: the title can contain html if desired. If it is wrapped by one html element, that element will be used as the title toggler. Otherwise, it will wrap the title in a <h4> tag. Also, the title cannot contain ‘}’ or the plugin will incorrectly interpret that as the end of the title. Lastly, to create separate accordions, just make sure there is some kind of content (text, a non-breaking space [&nbsp;], an empty <p> tag, a <br />, etc.) separating the mooblocks.

This plugin is listed on the Joomla Extensions Directory.

If you have any problems using the plugin, wish to report a bug, or have any feature requests, please contact me, Andrew Patton, at: