-
AuthorPosts
-
lailuluelo Friend
lailuluelo
- Join date:
- May 2010
- Posts:
- 241
- Downloads:
- 7
- Uploads:
- 34
- Thanks:
- 110
- Thanked:
- 21 times in 1 posts
May 18, 2010 at 10:36 am #151146Hello,
I have a module in blank that I don’t want to display in frontpage and certain sections, but I can’t select where is displayed.
I have it in local, so I post these images (in bottom):
Thank you in advance
lailuluelo Friendlailuluelo
- Join date:
- May 2010
- Posts:
- 241
- Downloads:
- 7
- Uploads:
- 34
- Thanks:
- 110
- Thanked:
- 21 times in 1 posts
May 18, 2010 at 1:10 pm #343926I find this post:
http://www.joomlart.com/forums/topic/help-removing-frontpage-content-area/
It’s solved in case of front page, but in case of a specific section?
Thank you
lailuluelo Friendlailuluelo
- Join date:
- May 2010
- Posts:
- 241
- Downloads:
- 7
- Uploads:
- 34
- Thanks:
- 110
- Thanked:
- 21 times in 1 posts
May 20, 2010 at 6:56 am #344086Nobody can help me?:((
cjmicro Friendcjmicro
- Join date:
- June 2008
- Posts:
- 501
- Downloads:
- 3
- Uploads:
- 0
- Thanks:
- 198
- Thanked:
- 81 times in 10 posts
May 20, 2010 at 6:47 pm #344158I am not sure what you mean, but if you do not want the module to show in certain sections can you not choose which menu items it shows on in the module manager?
Another option is to create a module and display it on certain pages in an article, using {loadposition yourmodule} in the article. It just depends on where you want it on the page if an article would work for that.
NOt sure if this is helpful, I hope it is.
Cheryl1 user says Thank You to cjmicro for this useful post
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
May 21, 2010 at 1:58 am #344196Dear lailuluelo!
Pls explain the issue in detail, we try to help you
Thankslailuluelo Friendlailuluelo
- Join date:
- May 2010
- Posts:
- 241
- Downloads:
- 7
- Uploads:
- 34
- Thanks:
- 110
- Thanked:
- 21 times in 1 posts
May 21, 2010 at 7:54 am #344236I would like to select by code show the main container depends on section.
For example, with the follow code (default.php), we don`t show the main container if we are in front page:
[PHP]<!–ONLY SHOW CONTENT ON SECONDARY PAGES –>
<?php if ( !$this->isFrontPage() ) : ?>
<!– MAIN CONTAINER –>
<div id=”ja-container” class=”wrap <?php echo $this->getColumnWidth(‘cls_w’); ?>”>
<div class=”main”><div class=”ja-rs2-top”><div class=”ja-rs2-tl”> </div><div class=”ja-rs2-tr”> </div></div>
<div class=”ja-rs2-mid”><div class=”ja-rs2-ml”><div class=”ja-rs2-mr clearfix”>
<?php $this->loadBlock(‘breadcrumb’) ?>
<div id=”ja-mainbody” style=”width:<?php echo $this->getColumnWidth(‘mw’) ?>%”>
<?php $this->loadBlock(‘main’) ?>
<?php $this->loadBlock(‘left’) ?>
</div>
<?php $this->loadBlock(‘right’) ?>
</div></div></div><div class=”ja-rs2-bot”><div class=”ja-rs2-bl”> </div><div class=”ja-rs2-br”> </div></div>
<?php $this->loadBlock(‘bot’) ?>
</div>
</div>
<!– //MAIN CONTAINER –><?php endif; ?>
<!–END ONLY SHOW CONTENT ON SECONDARY PAGES –>[/PHP]
How can I do for sections?
Sorry, I have poor english
Thank you in advance
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
May 24, 2010 at 8:54 am #344528Dear lailuluelo!
You could not base on the section to show display the main content, you only base on the ItemId .
1 user says Thank You to Saguaros for this useful post
lailuluelo Friendlailuluelo
- Join date:
- May 2010
- Posts:
- 241
- Downloads:
- 7
- Uploads:
- 34
- Thanks:
- 110
- Thanked:
- 21 times in 1 posts
May 27, 2010 at 9:46 am #344906So, If I link to section in the item menu, I can ask for it? Isn’t it? Do you know how?
Thank you
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
May 31, 2010 at 11:54 pm #345447Dear lailuluelo
Solution for using the itemId paramter.
you find the following code:
[PHP]
<?php if ( !$this->isFrontPage() ) : ?>
[/PHP]
and replace:
[PHP]<?php
$itemIds=array(‘1′,’3’); // 1,3 are ItemId you replace it by others.
$itemId = (int) JRequest::getVar(‘Itemid’);
if ( !$this->isFrontPage() || in_array($itemId,$itemIds) ) : ?>
[/PHP]Good luck
-
AuthorPosts
This topic contains 9 replies, has 3 voices, and was last updated by Saguaros 14 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum