0
Welcome Guest! Login
0 items Join Now

Module Positions

    • Kassem's Avatar
    • Kassem
    • Jr. Rocketeer
    • Posts: 47
    • Thanks: 0

    Module Positions

    Posted 13 years 7 months ago
    • Hi,

      I followed the Gantry tutorial for the module positions. However, i have twice the logo and top3 position too and i don't have anymore top position. Could you tell me what's the problem in this following configuration? I 'm working on localhost with Dominion template joomla 1.5.

      templateDetails.xml
          
                  <position>top3-a</position>
                  <position>top3-b</position>
                  <position>top3-c</position>
                  <position>top3-d</position>
                  <position>top3-e</position>
                  <position>top3-f</position>
                  <position>top2-a</position>
                  <position>top2-b</position>
                  <position>top2-c</position>
                  <position>top2-d</position>
                  <position>top2-e</position>
                  <position>top2-f</position>
                  <position>top1-a</position>
                  <position>top1-b</position>
                  <position>top1-c</position>
                  <position>top1-d</position>
                  <position>top1-e</position>
                  <position>top1-f</position>
                  <position>top-a</position>
                  <position>top-b</position>
                  <position>top-c</position>
                  <position>top-d</position>
                  <position>top-e</position>
                  <position>top-f</position>
                  <position>top3-a</position>
                  <position>top3-b</position>
                  <position>top3-c</position>
                  <position>top3-d</position>
                  <position>top3-e</position>
                  <position>top3-f</position>
                  <position>top2-a</position>
                  <position>top2-b</position>
                  <position>top2-c</position>
                  <position>top2-d</position>
                  <position>top2-e</position>
                  <position>top2-f</position>
                  <position>top1-a</position>
                  <position>top1-b</position>
                  <position>top1-c</position>
                  <position>top1-d</position>
                  <position>top1-e</position>
                  <position>top1-f</position>
                  <position>top-a</position>
                  <position>top-b</position>
                  <position>top-c</position>
                  <position>top-d</position>
                  <position>top-e</position>
                  <position>top-f</position>
       
      templateDetails.xml
       
                  <param name="topPosition3" type="positions" default="5,7" label="TOP_POS" description="POS_DESC">
                      <schemas>1,2,3,4,5,6</schemas>
                      <words>2,3,4,5,6,7,8,9,10</words>
                  </param>
                  
                  <param name="topPosition2" type="positions" default="5,7" label="TOP_POS" description="POS_DESC">
                      <schemas>1,2,3,4,5,6</schemas>
                      <words>2,3,4,5,6,7,8,9,10</words>
                  </param>
                  
                  <param name="topPosition1" type="positions" default="5,7" label="TOP_POS" description="POS_DESC">
                      <schemas>1,2,3,4,5,6</schemas>
                      <words>2,3,4,5,6,7,8,9,10</words>
                  </param>
                  
                  <param name="topPosition" type="positions" default="5,7" label="TOP_POS" description="POS_DESC">
                      <schemas>1,2,3,4,5,6</schemas>
                      <words>2,3,4,5,6,7,8,9,10</words>
                  </param>
       
      index.php
       
                      <?php /** Begin Top3 **/ if ($gantry->countModules('top3')) : ?>
                      <div id="rt-top">
                          <?php echo $gantry->displayModules('top3','standard','standard'); ?>
                          <div class="clear"></div>
                      </div>
                      <?php /** End Top3 **/ endif; ?>
                      <?php /** Begin Top2 **/ if ($gantry->countModules('top2')) : ?>
                      <div id="rt-top">
                          <?php echo $gantry->displayModules('top2','standard','standard'); ?>
                          <div class="clear"></div>
                      </div>
                      <?php /** End Top2 **/ endif; ?>
                      <?php /** Begin Top1 **/ if ($gantry->countModules('top1')) : ?>
                      <div id="rt-top">
                          <?php echo $gantry->displayModules('top1','standard','standard'); ?>
                          <div class="clear"></div>
                      </div>
                      <?php /** End Top1 **/ endif; ?>
                      <?php /** Begin Top **/ if ($gantry->countModules('top')) : ?>
                      <div id="rt-top">
                          <?php echo $gantry->displayModules('top','standard','standard'); ?>
                          <div class="clear"></div>
                      </div>
                      <?php /** End Top **/ endif; ?>
       
      Thanks,
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: Module Positions

    Posted 13 years 7 months ago
    • One problem I see is in your index.php - you have all of your top positions using div id="top" - you can only have 1 instance of any div id, meaning your HTML is not valid - all div id's must be unique, so you would need to have your id's be top, top1, top2 ECT. Not sure if that will solve your problem but you need to address that for sure.
    • The difficult we do immediately, the impossible takes a little longer.
    • Kassem's Avatar
    • Kassem
    • Jr. Rocketeer
    • Posts: 47
    • Thanks: 0

    Re: Module Positions

    Posted 13 years 7 months ago
    • I modified the file as follows:
                          <?php /** Begin Top3 **/ if ($gantry->countModules('top3')) : ?>
                          <div id="rt-top3">
                               <?php echo $gantry->displayModules('top3','standard','standard'); ?>
                               <div class="clear"></div>
                          </div>
                          <?php /** End Top3 **/ endif; ?>
                          <?php /** Begin Top2 **/ if ($gantry->countModules('top2')) : ?>
                          <div id="rt-top2">
                               <?php echo $gantry->displayModules('top2','standard','standard'); ?>
                               <div class="clear"></div>
                          </div>
                          <?php /** End Top2 **/ endif; ?>
                          <?php /** Begin Top1 **/ if ($gantry->countModules('top1')) : ?>
                          <div id="rt-top1">
                               <?php echo $gantry->displayModules('top1','standard','standard'); ?>
                               <div class="clear"></div>
                          </div>
                          <?php /** End Top1 **/ endif; ?>
                          <?php /** Begin Top **/ if ($gantry->countModules('top')) : ?>
                          <div id="rt-top">
                               <?php echo $gantry->displayModules('top','standard','standard'); ?>
                               <div class="clear"></div>
                          </div>
                          <?php /** End Top **/ endif; ?>

      but I still have the same problem
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: Module Positions

    Posted 13 years 7 months ago
    • A couple other things I see. Why do you have your positions listed twice in your template.xml? It looks like the same list twice in a row.

      Also, it states clearly in the documentation for the name tag = name - name of position + Position, you have "topPosition2", shouldn't it be "top2Position" - you might want to try that instead.
    • The difficult we do immediately, the impossible takes a little longer.

Time to create page: 0.056 seconds