Hello,
I would like to know if it is possible to use the gantry addScripts feature within a module.
for example: I have a js file in my js folder (default gantry template).
I would like to load this js file by using:
$gantry->addScripts ( array ('jquery.js') );
I tried everything to implement gantry - for example:
// Load the Gantry Framework
global $gantry;
$gantry_path = JPATH_SITE . '/components/com_gantry/gantry.php';
require_once ($gantry_path);
it is working in component overrides within the template - but not in module overrides.
Am I wrong? Or could you please tell me what I`m doing wrong?