0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

More info on 3.1.6?

    • Rich Bean's Avatar
    • Rich Bean
    • Elite Rocketeer
    • Posts: 1194
    • Thanks: 1

    More info on 3.1.6?

    Posted 14 years 5 months ago
    • From the latest and greatest:
      an important additional feature of being able to call initialize Gantry and get Gantry template parameters from components, overrides, plugins, and modules.
      Can you guys expand on this a bit?

      Cheers and Happy New Year!

      Rich
    • My Sites:
      Perth Website Design
      Scuba Marketing
      I'm a Henning Stalker!
    • Brian Towles's Avatar
    • Brian Towles
    • Hero Rocketeer
    • Posts: 451
    • Thanks: 9
    • Geekus Maximus

    Re: More info on 3.1.6?

    Posted 14 years 5 months ago
    • Basically, it allows you to initialize Gantry in an component, (or html override for a component) and use it to get parameters set by the template and use them to control aspects of layout or anything you want to control based on template params.

      All you have to do is add
       
      global $gantry;
      require_once(JPATH_ROOT."/components/com_gantry/gantry.php");
      $whatever = $gantry->get('whatever');
       

Time to create page: 0.089 seconds