Page 1 of 1

[HELP!!] I need to build a joomla compatible Accordion Menu

Posted: Tue Nov 20, 2007 1:55 pm
by quiquedcode
Hi guys
I need to build an Accordion menu for a website, Joomla compatible

I've found some mootools code, that builds an Accordion menu easily, but now I need to build the php code that builds automatically the menu structure for this code. I want to make a menu module, with the corresponding parameters, but need the proper php code to build the menu

HTML

Code: Select all

<div id="accordion">
<h1 class="toggler">Lorem</h1>
<div class="stretch">
<p>Text 1 goes here</p>
</div>
<h1 class="toggler">Ipsum</h1>
<div class="stretch">
<p>Text 2 goes here</p>
</div>
</div>
JS

Code: Select all

<script src="mootools.js" type="text/javascript" language="JavaScript"></script>

<script type="text/javascript" language="JavaScript">
window.addEvent('domready', function() {
var accordion = new Accordion('h1.toggler', 'div.stretch', $('accordion'));
});
</script>
source: http://pootato.org/tutorials/javascript ... -mootools/

I've tried giving a look to the mod_mainmenu.php but it is too complex for what I want... does any1 have a simpler code for rendering the menu html ?

Thanks a lot in advance