Shape 5

Joomla Club Extensions => Accordion Menu - Club => : cspgsl June 23, 2010, 04:05:56 AM



: Accordion does not exppand when on a page with mootools script
: cspgsl June 23, 2010, 04:05:56 AM
I am having the same problem as set out in this post http://www.shape5.com/component/option,com_smf/Itemid,75/topic,10881.0/ (http://www.shape5.com/component/option,com_smf/Itemid,75/topic,10881.0/). The URL for my site is www.greendragon.ca (http://www.greendragon.ca)

The menu would not expand when the user was on some pages, but not all. I added the following code to index.php and it fixed the issue on all but one page.
:)Solved (actually solved by Jonah on a different thread).
Add this string....
JHTML::_('behavior.mootools');
...right after the following in your index.php
defined( '_JEXEC' ) or die( 'Restricted index access' );
define( 'TEMPLATEPATH', dirname(__FILE__) );
The problem still exists on the Photographie page - (http://greendragon.ca/photography (http://greendragon.ca/photography)).

I have a plugin from http://www.joomlaworks.gr/ called simple image gallery. Quoting the plugin, "it is a "Mootools" implentation of the "Lightbox" script."

Can you give me an idea on what to add / change in the accordion menu code (or elsewhere) to get around this issue on the effected page?

Thanks


: Re: Accordion does not exppand when on a page with mootools script
: jonahh June 23, 2010, 12:50:40 PM
It appears that plugin is powered by jquery which could be the reason why there is a conflict. 


: Re: Accordion does not exppand when on a page with mootools script
: cspgsl June 23, 2010, 04:05:48 PM
are you saying that you do not have either a suggestion or a resolution?


: Re: Accordion does not exppand when on a page with mootools script
: jonahh June 24, 2010, 11:57:07 AM
Unfortunately when using two different Javascript libraries sometimes conflicts arise and the only solution is to go with either one or the other.  Mootools is the library included with Joomla so a lot of our modules run off this library.  I would contact Joomla works and see if they have a solution