0
Welcome Guest! Login
0 items Join Now

grantry hide frontpage and jomsocial

    • RuiGato's Avatar
    • RuiGato
    • Sr. Rocketeer
    • Posts: 209
    • Thanks: 0

    grantry hide frontpage and jomsocial

    Posted 13 years 6 months ago
    • If we set a grantry template to hide frontpage component, it will also hide jomsocial component


      components/com_gantry/html/layouts\body_mainbody.php
      // logic to determine if the component should be displayed
                $display_component = !($gantry->get("component-enabled",true)==false && JRequest::getVar('view') == 'frontpage');
                ob_start();

      cant we had a
      getVar('option') == 'com_content'

      in the gantry framework, so it looks for "frontpage" AND "com_content"?


      Thanks in advance
    • twitter.com/ruigato
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: grantry hide frontpage and jomsocial

    Posted 13 years 6 months ago
    • Hi Rui,

      you can always hide the component are with a page suffix and a display: none.
    • RuiGato's Avatar
    • RuiGato
    • Sr. Rocketeer
    • Posts: 209
    • Thanks: 0

    Re: grantry hide frontpage and jomsocial

    Posted 13 years 6 months ago
    • RuiGato's Avatar
    • RuiGato
    • Sr. Rocketeer
    • Posts: 209
    • Thanks: 0

    Re: grantry hide frontpage and jomsocial

    Posted 13 years 6 months ago
    • this doesnt work, any coder to correct this please
      $display_component = !($gantry->get("component-enabled",true)==false && JRequest::getVar('view') == 'frontpage' && JRequest::getVar('option') == 'com_content');
    • twitter.com/ruigato

Time to create page: 0.040 seconds