0
Welcome Guest! Login
0 items Join Now

Module position next to header and menu

  • Module position next to header and menu

    Posted 14 years 2 months ago
    • Hello Guys,

      Before I used your framework, I builed the template from the ground. Now I want to achieve this with your framework.
      I'm currently working on a project for a client of mine.

      I want the following to achieve:

      LOGO MENU
      HEADER
      CONTACT MAINCONTENT

      I've uploaded an image to excplain my comments.

      What is the best way to achieve this goal?

      Thanks in advance.
    • Webdesign is more than a job, it's feeling
  • Re: Module position next to header and menu

    Posted 14 years 2 months ago
    • I've found it out,

      I placed the header / navigation items in the body_mainbody and used a fixed width for the modules.

      Thanks anyway

      Here's the code I've used:
      <?php
      /**
       * @package   gantry
       * @subpackage html.layouts
       * @version   3.1.7 January 31, 2011
       * @author     RocketTheme http://www.rockettheme.com
       * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC
       * @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
       *
       * Gantry uses the Joomla Framework (http://www.joomla.org), a GNU/GPLv2 content management system
       *
       */
      defined('GANTRY_VERSION') or die();
       
      gantry_import('core.gantrylayout');
       
      /**
       *
       * @package gantry
       * @subpackage html.layouts
       */
      class GantryLayoutBody_MainBody extends GantryLayout {
           var $render_params = array(
                'schema'          =>  null,
                'pushPull'       =>  null,
                'classKey'       =>  null,
                'sidebars'       =>  ''
           );
           function render($params = array()){
                global $gantry;
       
                $fparams = $this-> _getParams($params);
       
                // logic to determine if the component should be displayed
                $display_component = !($gantry->get("component-enabled",true)==false && JRequest::getVar('view') == 'frontpage');
                ob_start();
       
                $mbClasses = trim("rt-grid-" . trim($fparams->schema['mb'] . " " . $fparams->pushPull[0]));
                $mbClasses = preg_replace('/\s\s+/', ' ', $mbClasses);
                
                
      // XHTML LAYOUT
      ?>            <div id="rt-main" class="<?php echo $fparams->classKey; ?>">
                          <div class="rt-container">
                               <div class="<?php echo $mbClasses; ?>">
                                    <?php /** Begin Menu **/ if ($gantry->countModules('navigation')) : ?>
                                    <div id="rt-menu">
                                         <div class="rt-container">
                                              <?php echo $gantry->displayModules('navigation','basic','basic'); ?>
                                              <div class="clear"></div>
                                         </div>
                                    </div>
                                    <?php /** Einde Menu **/ endif; ?>
                                    <?php /** Begin Header **/ if ($gantry->countModules('header')) : ?>
                                    <div id="rt-header">
                                         <div class="rt-container">
                                              <?php echo $gantry->displayModules('header','basic','basic'); ?>
                                              <div class="clear"></div>
                                         </div>
                                    </div>
                                    <?php /** Einde Header **/ endif; ?>                                
                                    <?php if ($display_component) : ?>
                                    <div class="rt-block">
                                         <div id="rt-mainbody">
                                              <div class="component-content">
                                                   <jdoc:include type="component" />
                                              </div>
                                         </div>
                                    </div>
                                    <?php endif; ?>
                               </div>
                               <?php echo $fparams->sidebars; ?>
                               <div class="clear"></div>
                          </div>
                     </div>
      <?php
                return ob_get_clean();
           }
      }
    • Webdesign is more than a job, it's feeling

Time to create page: 0.057 seconds