0
Welcome Guest! Login
0 items Join Now

Feature divs are always present

    • Linuus's Avatar
    • Linuus
    • Newbie
    • Posts: 15
    • Thanks: 0

    Feature divs are always present

    Posted 12 years 10 months ago
    • Hi!

      I have a module in the position "feature-a". I have set this to be present on the frontpage only.

      The module is only present on the first page, but this is not removed:
       
      <div class="rt-feature">
        <div class="rt-container">
          <div class="clear"></div>
        </div>
      </div>
       

      Looking in the index.php of the template I find this:
       
       
      <?php /** Begin Feature **/ if ($gantry->countModules('feature')) : ?>
      <div id="rt-feature">
        <div class="rt-container">
          <div class="clear"></div>
        </div>
      </div>
      <?php /** End Feature **/ endif; ?>
       

      This part: $gantry->countModules('feature') seems to always return "1" or higher. If I have two modules in the feature section it returns "2". If I have 1 it returns 1. If I have 0 it returns "1".


      Supposed to be this way? :)



      EDIT:
      I'm using J1.6 with the default Gantry template
    • Linuus's Avatar
    • Linuus
    • Newbie
    • Posts: 15
    • Thanks: 0

    Re: Feature divs are always present

    Posted 12 years 10 months ago
    • I found the issue...

      I had set Gantry to show System Messages in "feature-a" which made it like this, even though there were now messages at the moment.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Feature divs are always present

    Posted 12 years 10 months ago
    • thanks for reporting this :-)

Time to create page: 0.046 seconds