0
Welcome Guest! Login
0 items Join Now

Use Gantry within a module

  • Use Gantry within a module

    Posted 13 years 6 months ago
    • 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? :cry:
    • Member of the Virtuemart 2 Development Team.

      Take a look at my virtuemart theme which works perfectly with all rockettheme templates.
      http://www.developing-and-design.com/en/joomla/virtuemart-themes/features.html

Time to create page: 0.045 seconds