-
AuthorPosts
-
September 22, 2008 at 10:26 pm #133612
Hello.
I would like to split the topsl module into 3 separate module positions, e.g. topsl1, topsl2, topsl3
How would I go about doing this?
Please see attached image.
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
September 23, 2008 at 5:39 am #271798Hi jimesten !
You can do it following some steps below :
1. open templateDetails.xml file in templates/ja_fedora folder, add following code section between <position> and </position> tags.
<position>user13</position>
<position>user14</position>
<position>user15</position>
2. Open index.php file in templates/ja_fedora folder, find following code section at about line 118 :
<?php if($this->countModules('topsl')) : ?>
<div id="ja-topsl1"<?php if( !$this->countModules('top') ) {?>style="left: 0;width: 100%;"<?php } ?>>
<jdoc:include type="modules" name="topsl" style="xhtml" />
</div>
<?php endif ; ?>
change to :
<?php
$spotlight2 = array ('user13','user14','user15');
$topsl2 = $tmpTools->calSpotlight ($spotlight2,$tmpTools->isOP()?100:100);
if( $topsl2 ) {
?>
<!-- BEGIN: TOP SPOTLIGHT 1 -->
<div id="ja-topsl2" class="clearfix">
<?php if( $this->countModules('user13') ) {?>
<div class="ja-box<?php echo $topsl2['user13']['class']; ?>" style="width: <?php echo $topsl2['user13']['width']; ?>;">
<jdoc:include type="modules" name="user13" style="xhtml" />
</div>
<?php } ?><?php if( $this->countModules('user14') ) {?>
<div class="ja-box<?php echo $topsl2['user14']['class']; ?>" style="width: <?php echo $topsl2['user14']['width']; ?>;">
<jdoc:include type="modules" name="user14" style="xhtml" />
</div>
<?php } ?><?php if( $this->countModules('user15') ) {?>
<div class="ja-box<?php echo $topsl2['user15']['class']; ?>" style="width: <?php echo $topsl2['user15']['width']; ?>;">
<jdoc:include type="modules" name="user15" style="xhtml" />
</div>
<?php } ?></div>
<!-- END: TOP SPOTLIGHT 1 -->
<?php } ?>
1 user says Thank You to Sherlock for this useful post
September 27, 2008 at 8:04 am #272665I need the user 7 for example at least 60% regarding three modules in topsl (user 5,6 and 7)
How can i change the width to each position?
Thanks
September 28, 2008 at 7:42 am #272797I need the user 7 for example at least 60% regarding three modules in topsl (user 5,6 and 7)
5=25%, 6=25%, 7=50%How can i change the width to each position?
Thanks
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
September 29, 2008 at 8:30 am #273009Hi !
calSpotlight function in ja_templatetools.php file only seperates to 4 part with same width, if you want change % of width , you must hack to code of calSpotlight function.AuthorPostsViewing 5 posts - 1 through 5 (of 5 total)This topic contains 5 replies, has 3 voices, and was last updated by Sherlock 16 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Splitting the Topsl position into 3 postitions
Viewing 5 posts - 1 through 5 (of 5 total)