0
Welcome Guest! Login
0 items Join Now

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 13 years 3 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 13 years 3 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.036 seconds