Are you enjoying the extensions? Did you like the support? Help others decide.

Leave a review

file Accordion menu

More
10 years 3 weeks ago #3570 by netdyrlaege
Accordion menu was created by netdyrlaege
Hi
I have an issue where a module doesn't understand that it should use this plugin.
How do I load this jquery and not js_loadjquery

I guess the call is here:


require_once (dirname(__FILE__) . DS . 'helper.php');

$db = JFactory::getDBO();
$sql = "SELECT * FROM #__extensions WHERE `type`='plugin' AND `element` = 'js_loadjquery' AND `enabled` = 1";
$db->setQuery($sql);

if (!$db->loadResult()) {
echo '---';
} else {
$menutype = $params->get('menutype', 'mainmenu');
$type = $params->get('type', 'click');
$template = $params->get('template', 'blue');
$parentlink = (int) $params->get('parentlink', 0);
$remind = (int) $params->get('remind', 1);
$morelevel = (int) $params->get('morelevel', 1);

$horzmenu = new modOJAccordionMenu();

Please Log in or Create an account to join the conversation.

More
10 years 3 weeks ago #3571 by admin
Replied by admin on topic Accordion menu
Hello,

you will need to remove the 'if' statement in this code, that is all there is to it. It can only be done, in your case, by modifying the previous code, which can be an issue if you want to keep your module up-to-date: your modifications will be probably overridden in its next update. You have to keep that in mind.

Olivier.

Please Log in or Create an account to join the conversation.