-
AuthorPosts
-
wilero Friend
wilero
- Join date:
- August 2009
- Posts:
- 28
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 6
- Thanked:
- 3 times in 1 posts
August 28, 2009 at 11:19 am #143761Hello!
I would like an additional position underneath user1, user2 user5…just over the body section. Same with as body. How do I do this in a smooth way and still have the same style as the rest of the template?
I want to use it only on the frontpage to display all articles in one specific category (a jReview functionality showing a list of all accomondations at my site).John Wesley Brett ModeratorJohn Wesley Brett
- Join date:
- July 2013
- Posts:
- 2142
- Downloads:
- 17
- Uploads:
- 26
- Thanks:
- 175
- Thanked:
- 645 times in 426 posts
August 29, 2009 at 4:05 am #315619http://docs.joomla.org/How_do_you_add_a_new_template_position%3F
Have fun!
John.Anonymous ModeratorJA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
August 29, 2009 at 4:25 am #315628Hi wilero
Open templates/ja_raite/index.php, find following code:
<?php
$spotlight = array ('user1','user2','user5');
$sl = $tmpTools->calSpotlight ($spotlight,$tmpTools->isOP()?100:99.9);
if ($sl) {
?>
<div id="ja-topsl" class="clearfix">
<?php if ( $this->countModules('user1') ) { ?>
<div class="ja-box<?php echo $sl['user1']['class']; ?>" style="width: <?php echo $sl['user1']['width']; ?>;">
<jdoc:include type="modules" name="user1" style="xhtml" />
</div>
<?php } ?><?php if ( $this->countModules('user2') ) { ?>
<div class="ja-box<?php echo $sl['user2']['class']; ?>" style="width: <?php echo $sl['user2']['width']; ?>;">
<jdoc:include type="modules" name="user2" style="xhtml" />
</div>
<?php } ?><?php if ( $this->countModules('user5') ) { ?>
<div class="ja-box<?php echo $sl['user5']['class']; ?>" style="width: <?php echo $sl['user5']['width']; ?>;">
<jdoc:include type="modules" name="user5" style="xhtml" />
</div>
<?php } ?>
</div>
<?php } ?>
and duplicate it.
and then, you rename positions to your suitable.
1 user says Thank You to JA Developer for this useful post
wilero Friendwilero
- Join date:
- August 2009
- Posts:
- 28
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 6
- Thanked:
- 3 times in 1 posts
August 29, 2009 at 10:31 am #315644Thank you so much, that is great and saved me lots of valuable time :-*
wilero Friendwilero
- Join date:
- August 2009
- Posts:
- 28
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 6
- Thanked:
- 3 times in 1 posts
August 30, 2009 at 9:16 am #315715Just one question though, if I duplicate this section above, wont I have three additional positions instead of one? I would like to have one with same width as body (and user1, user2 and user5 together) underneath user1, user2 and user5.
imurillo Friendimurillo
- Join date:
- December 2007
- Posts:
- 380
- Downloads:
- 79
- Uploads:
- 117
- Thanks:
- 37
- Thanked:
- 2 times in 2 posts
September 23, 2009 at 5:57 pm #318297I would like six additional position underneath user1, user2 user5.
..just over the body section.
user9, user10, user 11
.just over .
user12, user13, user14
I copy the the code you sad twice
but only put four modules
user10, user11
user13, user14What happens with modules in position user9 and user12
-
AuthorPosts
This topic contains 7 replies, has 5 voices, and was last updated by joomboom 14 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum