Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • micheltorres Friend
    #186167

    Hello,

    I want to creat a new module position in header, like image below.

    I followed the instructions in http://t3-framework.org/documentation/layout-system.html and almost worked as desired. The only problem was that the positions login and followus were displaced vertically.

    What do I need to positions login and followus are not affected?

    Thank you


    1. novo-modulo-duvida
    2. novo-modulo-duvida-2
    MoonSailor Friend
    #487644

    Hi micheltorres,

    If you want to create new module position in header then, please open file “templates/ja_argo/tpls/blocks/header.php”, add code:

    [PHP]
    <?php if ($this->countModules(‘YOUR-MODULES-1’) || $this->countModules(‘YOUR-MODULES-1’)) : ?>
    <a data-toggle=”dropdown” href=”#” class=” dropdown-toggle”>
    <i class=”icon-plus”></i><?php echo JText::_(‘YOUR-MODULES-1’) ?>
    </a>

    <div>
    <jdoc:include type=”modules” name=”<?php $this->_p(‘YOUR-MODULES-1’) ?>” style=”T3Xhtml” />
    </div>

    <a data-toggle=”dropdown” href=”#” class=” dropdown-toggle”>
    <i class=”icon-plus”></i><?php echo JText::_(‘YOUR-MODULES-2’) ?>
    </a>
    <div>
    <jdoc:include type=”modules” name=”<?php $this->_p(‘YOUR-MODULES-2’) ?>” style=”T3Xhtml” />
    </div>

    <?php endif ?>
    [/PHP]

    before
    [PHP]
    <?php if ($this->countModules(‘followus’) || $this->countModules(‘login’)) : ?>
    [/PHP]

    micheltorres Friend
    #487835

    Hello MoonSailor,

    Thank you, but I don’t want a dropdown like Follow us and Login.
    My module contains just an image, destined for a little ad.
    I had already done the module appear in the header. My problem is that it shifted vertically followus and login module. (Search module remains ok).

    Any idea?

    Thank you again.

    MoonSailor Friend
    #487851

    Hi micheltorres,

    I think you want to display as attached image

    Try this :

    [PHP]
    <?php if ($this->countModules(‘ads’)) : ?>
    <div style=”float:left;height: 50px; line-height: 50px;”>
    <jdoc:include type=”modules” name=”<?php $this->_p(‘ads’) ?>” style=”T3Xhtml” />
    </div>
    <?php endif ?>
    [/PHP]

    Add style for “div” outer modules – just an image css code
    <blockquote>
    style=”float:left;height: 50px; line-height: 50px;”
    </blockquote>


    1. 3-26-2013-9-57-23-AM
    micheltorres Friend
    #487901

    Yeeeeeessssss!
    Thank you again MoonSailor. Perfect!

    Greetings from Brazil!

    angelausja Friend
    #488124

    great tip thanks

    kcokol Friend
    #488125

    thank you thank you

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 7 replies, has 4 voices, and was last updated by  kcokol 11 years, 8 months ago.

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