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

Discussion and education for beginner / novice programmers interested in embarking on the development process to take advantage of the extensible nature of the Joomla! CMS.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Forum rules
Post Reply
User avatar
quiquedcode
Joomla! Apprentice
Joomla! Apprentice
Posts: 29
Joined: Thu Aug 18, 2005 10:11 pm
Location: San Juan - Argentina
Contact:

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

Post by quiquedcode » Tue Nov 20, 2007 1:55 pm

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
K@beza
Freelance Joomla Templater
Portfolio: http://www.beza.com.ar
Joomla! (not so Daily) Tips: http://blog.beza.com.ar

Post Reply