Footer Positions

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sun Dec 09, 2012 5:11 am
Reply with quote
Report this post
Hello,

For some reason the footer or footer_nav position doesnt work whatsoever. Am I missing something? is this a known bug?
User avatar
Junior Boarder

GK User
Sun Dec 09, 2012 10:21 pm
Reply with quote
Report this post
Hi,

Please look at this image: http://demo.gavick.com/joomla25/startup ... -positions

"footer" is not a module position - it is a place for the other content like copyright text generated in the theme options - that's why it is marked with using other color.

And as you can see on the mentioned image - there is no "footer_nav" module position.
User avatar
Administrator

GK User
Sun Dec 09, 2012 11:17 pm
Reply with quote
Report this post
You can create a module position pretty easily, just takes a lil modifying of template files. I used to always wonder how to do this too when I was first getting started with joomla, so I figured I'd help the community out and put some simple instructions up :) This is what I did to get a footer menu in the footer position for 2.5.

FTP > httpdocs folder > Goto your templates folder > gkstartup > layouts > default.php > around line 240 in a blank line after php end
Code: Select all
<?php if($this->API->modules('social')) : ?>
    <section id="gkSocial">
       <div class="gkPage">
          <jdoc:include type="modules" name="social" style="<?php echo $this->module_styles['social']; ?>" />
       </div>
    </section>
    <?php endif; ?>


paste this code
Code: Select all
   <?php if($this->API->modules('footer')) : ?>
         <section id="footer">
            <jdoc:include type="modules" name="footer" style="<?php echo $this->module_styles['footer']; ?>" />
         </section>
         <?php endif; ?>


Then for your menu position in the menu module, type in "footer"
You can add the footer position to your templateDetails.xml if you want it to show on the dropdown list, or you can just type it into the position line on any module you wanna put in the footer. Hope this helps :)
User avatar
Senior Boarder

GK User
Sun Dec 09, 2012 11:34 pm
Reply with quote
Report this post
@afterglow8 - good tip but I suggest one improvement:

the code:

Code: Select all
 <?php if($this->API->modules('footer')) : ?>
         <section id="footer">
            <jdoc:include type="modules" name="footer" style="<?php echo $this->module_styles['footer']; ?>" />
         </section>
         <?php endif; ?>


should be changed to:

Code: Select all
<?php if($this->API->modules('footer')) : ?>
         <section id="footer">
            <jdoc:include type="modules" name="footer" style="none" />
         </section>
         <?php endif; ?>


OR the:

Code: Select all
"footer" => "none",


should be added in the lib/framework/gk.const.php file, because the mentioned code without changes in the gk.conts.php file will return a PHP notice that there is a reference to an unexisting key in the array (if the notices are enabled).
User avatar
Administrator

GK User
Mon Dec 10, 2012 2:57 am
Reply with quote
Report this post
this is already a create position in the template package. i dont want to create a new one. is it a bug?
User avatar
Junior Boarder

GK User
Mon Dec 10, 2012 8:20 am
Reply with quote
Report this post
It isn't a bug - not all templates have a footer_nav module positions and if you need this type of adjustments, then you have to modify the template code.
User avatar
Administrator


cron