-
AuthorPosts
-
Jason Hill Friend
Jason Hill
- Join date:
- September 2014
- Posts:
- 32
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 4
- Thanked:
- 4 times in 1 posts
January 14, 2009 at 2:23 pm #137100Hey 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 ModeratorJA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
January 15, 2009 at 7:10 am #286529Hi 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.
-
AuthorPosts
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