Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • windyjon Friend
    #121175

    Hi,

    I wanted to add some new module positions, which would mirror positions user1, user2, user5, but at the bottom of the page. Image attached which shows what I wanted to do.

    I’ve modified the index.php template at around line 250 to add the following block, and it all seems to work perfectly well. I now have some new positions, which for me suit the template rather well.

    My question is, is this all you have to do to add new module positions in Joomla? Or is there something I have to do in Site/template manager/module positions? (Sorry, I’m a bit of a Joomla newbie).

    WindyJon

    <?php if ($option != ‘com_frontpage’) {?>
    <div id=”ja-pathway”>
    <div class=”innerpad”>
    <?php mosPathway(); ?>
    </div>
    </div><div class=”clr”></div>
    <?php } ?>
    <?php mosMainBody(); ?>

    <!– BEGIN: NEW USER MODULE CODE – VERY EXPERIMENTAL STILL –>
    <?php
    $spotlight = array (‘user6′,’user7′,’user8’);
    $topspl = calSpotlight ($spotlight);
    if( $topspl ) {
    ?>
    <!– BEGIN: BOTTOM SPOTLIGHT –>
    <div id=”ja-topslwrap”>
    <div id=”ja-topsl” class=”clearfix”>
    <?php if( mosCountModules(‘user6’) ) {?>
    <div class=”ja-box<?php echo $topspl[‘modules’][‘user6’]; ?>” style=”width: <?php echo $topspl[‘width’]; ?>;”>
    <?php mosLoadModules(‘user6’, -2); ?>
    </div>

    <?php } ?>
    <?php if( mosCountModules(‘user7’) ) {?>
    <div class=”ja-box<?php echo $topspl[‘modules’][‘user7’]; ?>” style=”width: <?php echo $topspl[‘width’]; ?>;”>
    <?php mosLoadModules(‘user7’, -2); ?>
    </div>
    <?php } ?>

    <?php if( mosCountModules(‘user8’) ) {?>
    <div class=”ja-box<?php echo $topspl[‘modules’][‘user8’]; ?>” style=”width: <?php echo $topspl[‘width’]; ?>;”>
    <?php mosLoadModules(‘user8’, -2); ?>
    </div>
    <?php } ?>

    </div>
    <div class=”sep”></div>

    </div>

    <!– END: BOTTOM SPOTLIGHT –>

    <?php } ?>

    <!– END: NEW USER MODULE CODE – VERY EXPERIMENTAL STILL –>

    <?php if ( mosCountModules(‘banner’) ) { ?>
    <div id=”ja-banner”>
    <?php echo mosLoadModules ( ‘banner’,-1 ); ?>
    </div>

    <?php } ?>


    1. ja_rochea-new-modules
    Menalto Friend
    #223068

    Thats it, nothing more you need to do.
    As long as its working when you publish something in user6,7,8 modules positions.And doesnt break the layout.
    But for other templates and positions there might be more things to do.

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

This topic contains 2 replies, has 2 voices, and was last updated by  Menalto 17 years, 4 months ago.

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