Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • mrydzfski Friend
    #122429

    Hey All,

    Having some trouble inserting a new module into this template. I would like to add a new position above the main content area which I can use with a rotating image plugin from Joomla Works.

    I have tried inserting the following code in various spots, but alas nothing seems to work. As always, any help is appreciated.

    –PLACING CODE BEFORE MAIN CONTENT SECTION–

    <?php if (mosCountModules(‘banner’)>0) { ?>
    <?php mosLoadModules(‘banner’,-2); ?>
    <?php } ?>

    kallan Friend
    #228457

    Have you done an echo inside the if to see if it is spitting out a number instead of 0?
    – i guess the new module has been asigned the banner position?

    Cheers

    Menalto Friend
    #228504

    Try with this:

    <?php if ( mosCountModules('banner') ) { ?>
    <div id="ja-banner">
    <?php echo mosLoadModules ( 'banner',-1 ); ?>
    </div>
    <?php } ?>
    <?php mosMainBody(); ?>

    and in the template_css.css file:

    #ja-banner {

    text-align: center;

    }

    lulubug Friend
    #265049
Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 4 voices, and was last updated by  lulubug 16 years, 3 months ago.

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