Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • lailuluelo Friend
    #151146

    Hello,

    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 Friend
    #343926

    I 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 Friend
    #344086

    Nobody can help me?:((

    cjmicro Friend
    #344158

    I 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.
    Cheryl

    Saguaros Moderator
    #344196

    Dear lailuluelo!

    Pls explain the issue in detail, we try to help you
    Thanks

    lailuluelo Friend
    #344236

    I 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 Moderator
    #344528

    Dear lailuluelo!

    You could not base on the section to show display the main content, you only base on the ItemId .

    lailuluelo Friend
    #344906

    So, If I link to section in the item menu, I can ask for it? Isn’t it? Do you know how?

    Thank you

    Saguaros Moderator
    #345447

    Dear 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

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

This topic contains 9 replies, has 3 voices, and was last updated by  Saguaros 14 years, 4 months ago.

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