Postings

You can freely browse the forum and post in the community forum.
However, you need a valid license to write posts for support (own a valid commercial software license or have purchased a support membership).

Posts only show once reviewed. This is mainly preventive to keep spam away. Thank you for your understanding!

Accordion menu

More
IP: 87.59.196.142 12 years 7 months 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();
More
IP: 207.181.228.28 12 years 7 months 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.