Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Jason Hill Friend
    #137100

    Hey guys….

    I’m using the spotlight module in a JA template. It’s configured to display 3 articles in a row but I need it to display 4.

    The current width of the articles seems to be set to a percentage as they resize automatically when the left or right modules are turned off.

    I can’t for the life of me find out where the width of the articles are defined. I’ve been through the css and the php files included with the module and can’t find it anywhere ?

    Can someone help me out here ?

    Thanks in advance.

    Hilly

    Anonymous Moderator
    #286529

    Hi hilly,

    What are you using the template? Version ?

    You can open index.php file in templates/template_name folder, find following script to change:

    <?php
    $spotlight2 = array ('user7','user8','user9');
    $topsl2 = $tmpTools->calSpotlight ($spotlight2,$tmpTools->isOP()?100:99.9);
    if( $topsl2 ) {
    ?>
    <!-- BEGIN: TOP SPOTLIGHT 1-->
    <div id="ja-topsl2" class="clearfix">

    <?php if( $this->countModules('user7') ) {?>
    <div class="ja-box<?php echo $topsl2['user7']['class']; ?>" style="width: <?php echo $topsl2['user7']['width']; ?>;">
    <jdoc:include type="modules" name="user7" style="xhtml" />
    </div>
    <?php } ?>

    <?php if( $this->countModules('user8') ) {?>
    <div class="ja-box<?php echo $topsl2['user8']['class']; ?>" style="width: <?php echo $topsl2['user8']['width']; ?>;">
    <jdoc:include type="modules" name="user8" style="xhtml" />
    </div>
    <?php } ?>

    <?php if( $this->countModules('user9') ) {?>
    <div class="ja-box<?php echo $topsl2['user9']['class']; ?>" style="width: <?php echo $topsl2['user9']['width']; ?>;">
    <jdoc:include type="modules" name="user9" style="xhtml" />
    </div>
    <?php } ?>

    For example 4 articles, you can use the code below:

    <?php
    $spotlight2 = array ('user7','user8','user9','user10');
    $topsl2 = $tmpTools->calSpotlight ($spotlight2,$tmpTools->isOP()?100:99.9);
    if( $topsl2 ) {
    ?>
    <!-- BEGIN: TOP SPOTLIGHT 1-->
    <div id="ja-topsl2" class="clearfix">

    <?php if( $this->countModules('user7') ) {?>
    <div class="ja-box<?php echo $topsl2['user7']['class']; ?>" style="width: <?php echo $topsl2['user7']['width']; ?>;">
    <jdoc:include type="modules" name="user7" style="xhtml" />
    </div>
    <?php } ?>

    <?php if( $this->countModules('user8') ) {?>
    <div class="ja-box<?php echo $topsl2['user8']['class']; ?>" style="width: <?php echo $topsl2['user8']['width']; ?>;">
    <jdoc:include type="modules" name="user8" style="xhtml" />
    </div>
    <?php } ?>

    <?php if( $this->countModules('user9') ) {?>
    <div class="ja-box<?php echo $topsl2['user9']['class']; ?>" style="width: <?php echo $topsl2['user9']['width']; ?>;">
    <jdoc:include type="modules" name="user9" style="xhtml" />
    </div>
    <?php if( $this->countModules('user10') ) {?>
    <div class="ja-box<?php echo $topsl2['user10']['class']; ?>" style="width: <?php echo $topsl2['user10']['width']; ?>;">
    <jdoc:include type="modules" name="user10" style="xhtml" />
    </div>
    <?php } ?>

    I added the user10 position.

    Hope it helps.

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

This topic contains 2 replies, has 2 voices, and was last updated by Anonymous 15 years, 10 months ago.

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