0
Welcome Guest! Login
0 items Join Now

class="rt-container"​ behaving oddly

    • Ali Samii's Avatar
    • Ali Samii
    • Elite Rocketeer
    • Posts: 629
    • Thanks: 2

    class="rt-container"​ behaving oddly

    Posted 12 years 3 months ago
    • I have modified the index.php of the default gantry template to place everything but the copyright, debug and analytics positions within an overall container that has a box-shadow style applied to it. As long as nothing is published in any of the "maintop" positions. The moment I publish anything into one of the six maintop positions, the container seems to extend and "swallow" or wrap the copyright positions as well. The index.php code is:
      <body <?php echo $gantry->displayBodyTag(); ?>>
          <div class="rt-container" id="content-container">
              <div id="rt-content-surround">
                  <?php /** Begin Top Surround **/ if ($gantry->countModules('top') or $gantry->countModules('header')) : ?>
                  <header id="rt-top-surround">
                      <?php /** Begin Top **/ if ($gantry->countModules('top')) : ?>
                      <div id="rt-top" <?php echo $gantry->displayClassesByTag('rt-top'); ?>>
                          <div class="rt-container">
                              <?php echo $gantry->displayModules('top','standard','standard'); ?>
                              <div class="clear"></div>
                          </div>
                      </div>
                      <?php /** End Top **/ endif; ?>
                      <?php /** Begin Header **/ if ($gantry->countModules('header')) : ?>
                      <div id="rt-header">
                          <div class="rt-container">
                              <?php echo $gantry->displayModules('header','standard','standard'); ?>
                              <div class="clear"></div>
                          </div>
                      </div>
                      <?php /** End Header **/ endif; ?>
                      <?php /** Begin Navbar **/ if ($gantry->countModules('navbar')) : ?>
                      <div id="rt-navbar">
                          <nav class="rt-container">
                              <?php echo $gantry->displayModules('navbar','standard','standard'); ?>
                              <div class="clear"></div>
                          </nav>
                      </div>
                      <?php /** End Navbar **/ endif; ?>
                  </header>
                  <?php /** End Top Surround **/ endif; ?>
                  <?php /** Begin Drawer **/ if ($gantry->countModules('drawer')) : ?>
                  <div id="rt-drawer">
                      <div class="rt-container">
                          <?php echo $gantry->displayModules('drawer','standard','standard'); ?>
                          <div class="clear"></div>
                      </div>
                  </div>
                  <?php /** End Drawer **/ endif; ?>
                  <?php /** Begin Showcase **/ if ($gantry->countModules('showcase')) : ?>
                  <div id="rt-showcase">
                      <div class="rt-showcase-pattern">
                          <div class="rt-container">
                              <?php echo $gantry->displayModules('showcase','standard','standard'); ?>
                              <div class="clear"></div>
                          </div>
                      </div>
                  </div>
                  <?php /** End Showcase **/ endif; ?>
                  <div id="rt-transition"<?php if ($gantry->get('loadtransition')) echo $hidden; ?>>
                  <div id="rt-mainbody-surround">
                      <?php /** Begin Feature **/ if ($gantry->countModules('feature')) : ?>
                          <div class="rt-container">
                              <div id="rt-feature">
                                  <div class="rt-container">
                                      <?php echo $gantry->displayModules('feature','standard','standard'); ?>
                                      <div class="clear"></div>
                                  </div>
                              </div>
                          </div>
                      <?php /** End Feature **/ endif; ?>
                      <?php /** Begin Utility **/ if ($gantry->countModules('utility')) : ?>
                          <div class="rt-container">
                              <div id="rt-utility">
                                  <div class="rt-container">
                                      <?php echo $gantry->displayModules('utility','standard','standard'); ?>
                                      <div class="clear"></div>
                                  </div>
                              </div>
                          </div>
                      <?php /** End Utility **/ endif; ?>
                      <?php /** Begin Breadcrumbs **/ if ($gantry->countModules('breadcrumb')) : ?>
                          <div class="rt-container">
                              <div id="rt-breadcrumbs">
                                  <div class="rt-container">
                                      <?php echo $gantry->displayModules('breadcrumb','standard','standard'); ?>
                                      <div class="clear"></div>
                                  </div>
                              </div>
                          </div>
                      <?php /** End Breadcrumbs **/ endif; ?>
                      <?php /** Begin Main Top **/ if ($gantry->countModules('maintop')) : ?>
                          <div class="rt-container">
                              <div id="rt-maintop">
                                  <div class="rt-container">
                                      <?php echo $gantry->displayModules('maintop','standard','standard'); ?>
                                      <div class="clear"></div>
                                  </div>
                              </div>
                          <div class="rt-container">
                      <?php /** End Main Top **/ endif; ?>
                      <?php /** Begin Full Width**/ if ($gantry->countModules('fullwidth')) : ?>
                          <div id="rt-fullwidth">
                              <?php echo $gantry->displayModules('fullwidth','basic','basic'); ?>
                              <div class="clear"></div>
                          </div>
                      <?php /** End Full Width **/ endif; ?>
                      <?php /** Begin Main Body **/ ?>
                          <div class="rt-container">
                              <?php echo $gantry->displayMainbody('mainbody','sidebar','standard','standard','standard','standard','standard'); ?>
                          </div>
                      <?php /** End Main Body **/ ?>
                      <?php /** Begin Main Bottom **/ if ($gantry->countModules('mainbottom')) : ?>
                          <div class="rt-container">
                              <div id="rt-mainbottom">
                                  <div class="rt-container">
                                      <?php echo $gantry->displayModules('mainbottom','standard','standard'); ?>
                                      <div class="clear"></div>
                                  </div>
                              </div>
                          </div>
                      <?php /** End Main Bottom **/ endif; ?>
                      <?php /** Begin Extension **/ if ($gantry->countModules('extension')) : ?>
                          <div class="rt-container">
                              <div id="rt-extension">
                                  <div class="rt-container">
                                      <?php echo $gantry->displayModules('extension','standard','standard'); ?>
                                      <div class="clear"></div>
                                  </div>
                              </div>
                          </div>
                      <?php /** End Extension **/ endif; ?>
                  </div>
                  </div>
                  <?php /** Begin Bottom **/ if ($gantry->countModules('bottom')) : ?>
                  <div id="rt-bottom">
                      <div class="rt-container">
                          <?php echo $gantry->displayModules('bottom','standard','standard'); ?>
                          <div class="clear"></div>
                      </div>
                  </div>
                  <?php /** End Bottom **/ endif; ?>
                  <?php /** Begin Footer Section **/ if ($gantry->countModules('footer')) : ?>
                  <footer id="rt-footer-surround">
                  <?php /** Begin Footer **/ if ($gantry->countModules('footer')) : ?>
                      <div id="rt-footer">
                          <div class="rt-container">
                              <?php echo $gantry->displayModules('footer','standard','standard'); ?>
                              <div class="clear"></div>
                          </div>
                      </div>
                  <?php /** End Footer **/ endif; ?>
                  </footer>
                  <?php /** End Footer Surround **/ endif; ?>
              </div>
          </div>
          <div class="clear"></div>
          <?php /** Begin Copyright Section **/ if ($gantry->countModules('copyright')) : ?>
              <div class="rt-container">
                  <footer id="rt-copyright-surround">
                  <?php /** Begin Copyright **/ if ($gantry->countModules('copyright')) : ?>
                      <div id="rt-copyright">
                          <div class="rt-container">
                              <?php echo $gantry->displayModules('copyright','standard','standard'); ?>
                              <div class="clear"></div>
                          </div>
                      </div>
                  <?php /** End Copyright **/ endif; ?>
                  </footer>
              </div>
          <?php /** End Copyright Surround **/ endif; ?>
          <?php /** Begin Debug **/ if ($gantry->countModules('debug')) : ?>
              <div class="rt-container">
                  <div id="rt-debug">
                      <div class="rt-container">
                          <?php echo $gantry->displayModules('debug','standard','standard'); ?>
                          <div class="clear"></div>
                      </div>
                  </div>
              </div>
          <?php /** End Debug **/ endif; ?>
          <?php /** Begin Analytics **/ if ($gantry->countModules('analytics')) : ?>
          <?php echo $gantry->displayModules('analytics','basic','basic'); ?>
          <?php /** End Analytics **/ endif; ?>
      </body>
       

      Can someone advise me please.

      gobet.ergonomiq.net/
      J3.0.2
      G4.1.4
    • Last Edit: 12 years 3 months ago by Ali Samii.
    • Thank you.

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

    Re: class="rt-container"​ behaving oddly

    Posted 12 years 3 months ago
    • I have no really the tome to look into this.
      But from my own experience ... avoid module positions names like "top" etc.
      Try changing that to really unique names.
    • Ali Samii's Avatar
    • Ali Samii
    • Elite Rocketeer
    • Posts: 629
    • Thanks: 2

    Re: class="rt-container"​ behaving oddly

    Posted 12 years 3 months ago
    • Hi Henning:

      Thanks for the reply. Those position names ane not ones I created...they are the default ones in the Gantry Default Template:

      demo.gantry-framework.org/features/module-positions

      Of course I can change them, but if this is really a concern, perhaps it should be looked at by RocketTheme for the default positions in the Gantry Framework Default Template.
    • Thank you.

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

    Re: class="rt-container"​ behaving oddly

    Posted 12 years 3 months ago
    • Nope that's really not our issue. Our default template works ...

      your lines 90+ looks fishy to me

      <div class="rt-container">
      <?php /** End Main Top **/ endif; ?>
      <?php /** Begin Full Width**/ if ($gantry->countModules('fullwidth')) : ?>

      I guess it should be

      <?php /** End Main Top **/ endif; ?>
      <?php /** Begin Full Width**/ if ($gantry->countModules('fullwidth')) : ?>
      <div class="rt-container">
      <div id="rt-fullwidth">

      but we are not really here to check the structure in the code of your custom files to be honest.

Time to create page: 0.048 seconds