New module position Full Width

GK User
Thu Jul 10, 2014 10:11 am
Hi,

I am trying to add a new module position (Full width). I already have edited some code. I have modified the TEMPLATEDETAILS.XML with the new position fullwidth

I have a question regarding editing the gk.const.php file located in /lib/framework. This file doesn't exist in the Events template. Where can I add the new module position to the template module styles?

Another question regarding modifying the layout folder (gk_NameOfTemplate\layouts\default.php). Is the code below good for a full width or is this a css modification?

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


Regards, Bruce
User avatar
Senior Boarder

GK User
Thu Jul 10, 2014 12:46 pm
I have edited the default.php (see code below)

Code: Select all
<div id="gkBg">      
       <header id="gkHeader"<?php if(in_array('frontpage', $page_suffix_table) === FALSE) : ?> class="menu-visible"<?php endif; ?>>      
         <div id="gkHeaderNav"<?php if(in_array('frontpage', $page_suffix_table) === FALSE) : ?> class="static"<?php endif; ?>>
            <div class="gkPage">
                    <?php $this->layout->loadBlock('logo_small'); ?>
                    
                    <?php if($this->API->get('show_menu', 1)) : ?>
                    <div id="gkMainMenu" class="gkMenuClassic">
                            <?php
                          $this->mainmenu->loadMenu($this->API->get('menu_name','mainmenu'));
                           $this->mainmenu->genMenu($this->API->get('startlevel', 0), $this->API->get('endlevel',-1));
                       ?>
                    </div>
                    <?php endif; ?>
                    
                    <?php if($this->API->get('show_menu', 1)) : ?>
                    <div id="gkMobileMenu" class="gkPage">
                        <i id="static-aside-menu-toggler" class="fa fa-bars"></i>
                    </div>
                    <?php endif; ?>
             </div>
          </div>
           
            <?php if($this->API->modules('fullwidth')) : ?>
             <div class="fullwidth">
                <jdoc:include type="modules" name="fullwidth" style="none" />
             </div>
          <?php endif; ?>
               </div>
          </div>
           
          <?php if($this->API->modules('header')) : ?>
          <div id="gkHeaderMod">
             <div class="gkPage">
                <?php $this->layout->loadBlock('logo'); ?>
                <jdoc:include type="modules" name="header" style="none" />
             </div>
         </div>
          <?php endif; ?>


I only have a problem that the main body has a grey background color after the adjustment. What am I missing in the code?

URL: www.degener.nl/web2

Regards, Bruce
User avatar
Senior Boarder

GK User
Mon Jul 14, 2014 10:37 am
I don't see any gray background in your website. Could you mark on screenshot this area?
User avatar
Platinum Boarder

GK User
Tue Jul 22, 2014 2:19 pm
I have deleted the <div> fields and the grey area disappeared.
User avatar
Senior Boarder

GK User
Mon Jul 28, 2014 1:25 pm
Is there still problem with that or removing this container resolved your problem?
User avatar
Platinum Boarder


cron