test
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • andreamarucci Friend
    #139565

    Just a question, if possible.

    How can I create a new module position to put a banner like in the attached image? Is this possible?

    4705

    1. bann
    Css Magician Friend
    #298406

    <em>@andreamarucci 120238 wrote:</em><blockquote>Just a question, if possible.

    How can I create a new module position to put a banner like in the attached image? Is this possible?

    4705

    </blockquote>

    Hi Andreamarucci,
    In templates/ja_bellatrix/index.php You can add code into div ja-contentwrap , ex code :
    [PHP]
    <div id=”ja-contentwrap”>
    <?php if (mosCountModules(‘banner’)) { ?>
    <!– BEGIN: Banner –>
    <div id=”ja-banner”>
    <?php
    echo mosLoadModules ( ‘banner’,0 );
    ?>
    </div>
    <!– END: Banner –>
    <div id=”ja-content”>
    <?php mosMainBody(); ?>
    </div>
    </div>
    [/PHP]

    And in templates/ja_bellatrix/css/template_css.css you need have style id ja-banner , ex :


    #ja-banner {
    padding:10px 15px 20px;
    }

    andreamarucci Friend
    #298433

    Thanks!!!. I’ll try asap…

    andreamarucci Friend
    #298475

    Just to be sure. This is the code I’ve found in index.php

    [PHP]<div id=”ja-container<?php echo $divid; ?>” class=”clearfix”>

    <!– BEGIN: CONTENT –>
    <div id=”ja-mainbody<?php echo $divid; ?>”>
    <a name=”Content” id=”Content”></a>

    <div id=”ja-contentwrap”>
    <div id=”ja-content”>
    <jdoc:include type=”component” />
    </div>
    </div>

    <?php if ($ja_left) { ?>
    <!– BEGIN: LEFT COLUMN –>
    [/PHP]

    This one should become like this one?

    [PHP]<div id=”ja-container<?php echo $divid; ?>” class=”clearfix”>

    <!– BEGIN: CONTENT –>
    <div id=”ja-mainbody<?php echo $divid; ?>”>
    <a name=”Content” id=”Content”></a>

    <div id=”ja-contentwrap”>

    <?php if (mosCountModules(‘banner’)) { ?>
    <!– BEGIN: Banner –>
    <div id=”ja-banner”>
    <?php
    echo mosLoadModules ( ‘banner’,0 );
    ?>
    </div>
    <!– END: Banner –>

    <div id=”ja-content”>
    <jdoc:include type=”component” />
    </div>
    </div>

    <?php if ($ja_left) { ?>
    <!– BEGIN: LEFT COLUMN –>
    [/PHP]

    andreamarucci Friend
    #298490

    BTW I’m using Joomla 1.5 and not 1.0…

    andreamarucci Friend
    #298492

    Solved

    I’ve added this

    <position>bannertop</position>

    in templatedetails.xml

    and added this one

    <jdoc:include type="modules" name="bannertop" />

    Just under <div id=”ja-contentwrap”> in index.php

    Created the module as custom html and published and it works perfectly…

    Thanks anyway

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

This topic contains 6 replies, has 2 voices, and was last updated by  andreamarucci 15 years, 9 months ago.

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