0
Welcome Guest! Login
0 items Join Now

SOLVED Need help adding new footer module position J1.7

  • SOLVED Need help adding new footer module position J1.7

    Posted 13 years 6 months ago
    • Hi,
      I'm attempting to add a new module position under the current footer position in the Syndicate template on a Joomla 1.7 site.
      The existing Gantry documentation is for J1.5 but I've attempted to extrapolate the info there and work with the files.
      I have managed to get the new position, footer1, to show up in the template layout manager, it shows up in the backend when I go to add a module to that position but it doesn't show up in the html.
      I've added the following to the index.php below the current footer <div>
                                  <?php /** HT Begin Footer1 **/ if ($gantry->countModules('footer1')) : ?>
                                  <div id="rt-footer1">
                                      <?php if ($gantry->get('footerwidth') == 'full'): ?>
                                      <div class="rt-container">
                                      <?php endif; ?>
                                          <?php echo $gantry->displayModules('footer1','standard','standard'); ?>
                                          <div class="clear"></div>
                                      <?php if ($gantry->get('footerwidth') == 'full'): ?>
                                      </div>
                                      <?php endif; ?>
                                  </div>
                                  <?php /** End Footer1 **/ endif; ?>
       
      The following in the templatesDetails.xml below the current footer <position>
                  <position>footer1-a</position>
                  <position>footer1-b</position>
                  <position>footer1-c</position>
                  <position>footer1-d</position>
                  <position>footer1-e</position>
                  <position>footer1-f</position>
       
      I've added the following below the current footer <fields>
              <fields name="footer1" type="position" label="FOOTER1_POS">
                  <field name="layout" type="positions" default="4,4,4,4" label="">
                      <schemas>1,2,3,4,5,6</schemas>
                      <words>2,3,4,5,6,7,8,9,10,11,12,13</words>
                  </field>
                  <field name="showall" type="toggle" default="0" label="FORCE_POS"/>
                  <field name="showmax" type="showmax" default="6" label="POS_COUNT"/>
              </fields>
       
      I added this below the current FOOTER_POS in the en-GB.tpl_rt_syndicate_j1.6.ini
      FOOTER1_POS="Footer1 Positions"
       
      But the module position is not showing.
      HELP :shock:
    • Last Edit: 13 years 6 months ago by Herb Tucker.
  • Re: SOLVED Need help adding new footer module position J1.7

    Posted 13 years 6 months ago
    • OK, I got things to work, sort of. Now I have a different issue.
      I found that there was a php if that did a module count for the footer section and I had to add the new footer1.
      Original code was
      <?php /** Begin Footer **/ if ($gantry->countModules('footer') or $gantry->countModules('copyright')) : ?>

      which I modified to
      <?php /** Begin Footer **/ if ($gantry->countModules('footer') or $gantry->countModules('footer1') or $gantry->countModules('copyright')) : ?>

      So now the module position displays but modules published in the backend to footer1 display in BOTH footer and footer1 positions :(
      Sure need some help here as I've looked at this and looked at this and not really understanding PHP I'm at a loss of where to go from here.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: SOLVED Need help adding new footer module position J1.7

    Posted 13 years 6 months ago
    • hmm can you zip your templateOptions.xml and your index.php and send me that via PM.
      Would like to testdrive that ...
  • Re: SOLVED Need help adding new footer module position J1.7

    Posted 13 years 6 months ago
    • Hi Henning,
      I'll send them straight away.
      Cheers!
      Herb
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: SOLVED Need help adding new footer module position J1.7

    Posted 13 years 6 months ago
    • Hi Herb,

      so I did some testing. You did nothing wrong except ...

      dont use "footer1" as the new name. use "herb" or "mynewfooter" but not an existing-position with a number at the end. I didn't know that myself ... but it's a matter of naming conventions.
      I guess somewhere in Gantry numbers are stripped when the positions get created.

      I hope this helps ...
  • Re: SOLVED Need help adding new footer module position J1.7

    Posted 13 years 6 months ago
    • Beautiful, that did the trick!
      Thank you very much. I was past the limits of my PHP abilities already :shock: so without your help I was SOL
      Be well!
      Herb

Time to create page: 0.056 seconds