Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • redsent Friend
    #172620

    Does anybody know how to add module positions into the header block?

    jooservices Friend
    #433196

    Hi
    Have you checked into blocks/header.php ?

    Thank you

    redsent Friend
    #433256

    yes but not sure how to add in module positions, was hoping it would be a simple change to the xml file

    modernmagic Friend
    #433509

    did you figure this out?

    we2solutions Friend
    #433516

    Hi,

    Please try with this

    [PHP]<?php if($this->countModules(‘cus_mod1’)) : ?>
    <div id=”ja-header” class=”wrap”>
    <div class=”main clearfix”>
    <div id=”cus_mod1″>
    <jdoc:include type=”modules” name=”cus_mod1″ style=”xhtml” />
    </div>
    <?php endif; ?>[/PHP]

    accordingly to that you want to change template.css and add position as cus_mod1 to xml file

    Thanks

    modernmagic Friend
    #433517

    Do I put that php code into this? /plugins/system/jat3/jat3/base-themes/default/blocks/mainnav.php

    When you say “add position as cus_mod1 to xml file” does that mean add it as a block into the default template Layout? If so what is the code?

    Thanks

    modernmagic Friend
    #433524

    Assuming I am suppossed to put that php code into the mainnav.php, then here is what it looks like now:

    <?php
    /**
    * ------------------------------------------------------------------------
    * JA T3 System plugin for Joomla 1.7
    * ------------------------------------------------------------------------
    * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
    * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
    * Author: J.O.O.M Solutions Co., Ltd
    * Websites: http://www.joomlart.com - http://www.joomlancers.com
    * ------------------------------------------------------------------------
    */

    // No direct access
    defined('_JEXEC') or die;
    ?>

    <?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu (); ?>
    <!-- jdoc:include type="menu" level="0" / -->

    <?php if ($this->hasSubmenu() && ($jamenu = $this->loadMenu())) : ?>
    <div id="ja-subnav" class="clearfix">
    <?php $jamenu->genMenu (1); ?>
    <!-- jdoc:include type="menu" level="1" / -->
    </div>
    <?php endif;?>

    <ul class="no-display">
    <li><a href="<?php echo $this->getCurrentURL();?>#ja-content" title="<?php echo JText::_("SKIP_TO_CONTENT");?>"><?php echo JText::_("SKIP_TO_CONTENT");?></a></li>
    </ul>
    <?php if($this->countModules('cus_mod1')) : ?>
    <div id="ja-header" class="wrap">
    <div class="main clearfix">
    <div id="cus_mod1">
    <jdoc:include type="modules" name="cus_mod1" style="xhtml" />
    </div>
    <?php endif; ?>

    Is that right?

    modernmagic Friend
    #433525

    And assuming I would add this to my default Layout:

    <block name="mainnav" type="mainnav" main-inner="1"></block>
    <block name="cus_mod1" type="modules" >cus_mod1</block>

    Is that right?

    we2solutions Friend
    #433526

    i thought redsent having the problem.any how if you wan to add module to mainnav.php then you want to change the div ID

    [PHP]<?php if($this->countModules(‘cus_mod1’)) : ?>
    <div id=”ja-menunav” class=”wrap”>
    <div class=”main clearfix”>
    <div id=”cus_mod1″>
    <jdoc:include type=”modules” name=”cus_mod1″ style=”xhtml” />
    </div>
    <?php endif; ?>[/PHP]

    this is one way of adding module to the place you want.but please come with clear question then its easy to answer.or if you can put a screenshot or live url then its easy.

    Thanks

    redsent Friend
    #433553

    So where does this code actually go, in the header.php file or in its own file?

    we2solutions Friend
    #433687

    Hi Please send screen shot to see what exact position to add this

    Thanks

    redsent Friend
    #433726

    Hi i would like to add module positions in the header block

    link to website

    jooservices Friend
    #433728

    Hi
    Please update thread with
    – Your backend & FTP access. So i can apply code for it.
    – Your screenshot to let’s me know which / how module you want to for adding 🙂

    Thank you

    redsent Friend
    #433730

    If you let me know which files need amending I can send them

    screenshot attached, i’d like to add module positions in the header block, at present it only shows the logo and search bar, need to be able to put modules in their as well.

    Ideally I’d like to learn how to do this my self so seeing which files have been amended and how would be a great help.

    Cheers.

    Paul


    1. 2012-01-13_104331
    modernmagic Friend
    #433933

    Can anyone answer this?

Viewing 15 posts - 1 through 15 (of 17 total)

This topic contains 17 replies, has 4 voices, and was last updated by  jooservices 12 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum