0
Welcome Guest! Login
0 items Join Now

Gantry and page-suffix?

    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Gantry and page-suffix?

    Posted 15 years 5 months ago
    • I just noticed that in gantry the page suffix is tied to <div class="rt-joomla"> like <div class="rt-joomla mysuffix">.

      in the last templates "Infuse" & "Iridium" it was applied as a class to the body (if I remember right) – wich makes more sense to me.

      Why have you changed that? (There may be good reasons for that)

      Or could we have that page-suffix-behaviour as an option in gantry?
      Apply page-suffix as a class to the <body>-tag: yes/no
    • Andy Miller's Avatar
    • Andy Miller
    • Preeminent Rocketeer
    • Posts: 9919
    • Thanks: 96
    • Web Kahuna

    Re: Gantry and page-suffix?

    Posted 15 years 5 months ago
    • The page suffix is something that is set in the content item. As such it's only available when the content is rendering, ie, in the content display within displayMainbody(). I don't think it's possible to put this on the <body> tag.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Gantry and page-suffix?

    Posted 15 years 5 months ago
    • well, I dont think so rhuk ...
      When I look into INFUSE I find this:

      in rt_utils.php

      $menus = &JSite::getMenu();
      $menu = $menus->getActive();
      $pageclass = "";

      if (is_object( $menu )) :
      $params = new JParameter( $menu->params );
      $pageclass = $params->get( 'pageclass_sfx' );
      endif;

      and in index.php

      <body id="ff-<?php echo $fontfamily; ?>" class="<?php echo $fontstyle; ?> <?php echo $pstyle; ?> <?php echo $bgstyle; ?> <?php echo $pageclass; ?> iehandle">

      wich is nothing different then applying pageclass_sfx' to the body (?)
    • Last Edit: 15 years 5 months ago by Henning.
    • Andy Miller's Avatar
    • Andy Miller
    • Preeminent Rocketeer
    • Posts: 9919
    • Thanks: 96
    • Web Kahuna

    Re: Gantry and page-suffix?

    Posted 15 years 5 months ago
    • A good catch, added to the 2.0 list.
    • RuiGato's Avatar
    • RuiGato
    • Sr. Rocketeer
    • Posts: 209
    • Thanks: 0

    Re: Gantry and page-suffix?

    Posted 14 years 10 months ago
    • Can i add a sufix to the article layout via page class:


      Would like to add "flush" to the rt-block class of the article in somaxion.
    • twitter.com/ruigato
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Gantry and page-suffix?

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

    Re: Gantry and page-suffix?

    Posted 14 years 10 months ago
    • Thanks Henning.

      Dont like soccer..

      Wat i want to do is to remove the padding from the rt-block in this template.

      If i do .rt-block {padding: 0;} all the modules are affected, i just want the content area with less padding to gain free space for a component.


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

    Re: Gantry and page-suffix?

    Posted 14 years 10 months ago
    • oh,

      ok wich template?
    • RuiGato's Avatar
    • RuiGato
    • Sr. Rocketeer
    • Posts: 209
    • Thanks: 0

    Re: Gantry and page-suffix?

    Posted 14 years 10 months ago
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Gantry and page-suffix?

    Posted 14 years 10 months ago
    • add
      #rt-main div.rt-block 
      {padding: 0;}
       
      div#rt-sidebar-a div.rt-block,
      div#rt-sidebar-b div.rt-block,
      div#rt-sidebar-c div.rt-block,
      div#rt-content-top div.rt-block,
      div#rt-content-bottom div.rt-block
      {padding: 15px;}

      if you want to use a page suffix like "nopadmain":
      .nopadmain #rt-main div.rt-block 
      {padding: 0;}
       
      .nopadmain div#rt-sidebar-a div.rt-block,
      .nopadmain div#rt-sidebar-b div.rt-block,
      .nopadmain div#rt-sidebar-c div.rt-block,
      .nopadmain div#rt-content-top div.rt-block,
      .nopadmain div#rt-content-bottom div.rt-block
      {padding: 15px;}

Time to create page: 0.064 seconds