test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • mrfast Friend
    #160453

    Hi everybody,
    If want some modules just display in home page(Front Page Blog Layout) I’ll use this code
    example
    [php]<?php if($tmpTools->isFrontPage()) : ?>
    <jdoc:include type=”modules” name=”ja-news” style=”raw” />
    <?php endif; ?>
    [/php]And if want modules ja-news just display with mode Category Blog Layout or Section Blog Layout I must use which function?.
    Thanks

    Sherlock Friend
    #377697

    Dear fastsoftcompany,

    with the Category Blog Layout you can try with this code
    [PHP] if(JRequest::getCmd( ‘view’ ) == ‘category’ && Request::getCmd( ‘option’ ) == ‘com_content’ && Request::getCmd( ‘layout’ ) == ‘blog’)
    <jdoc:include type=”modules” name=”ja-news” style=”raw” />
    <?php endif; ?>[/PHP]
    and with the section blog layout is similar
    [PHP] if(JRequest::getCmd( ‘view’ ) == ‘section’ && Request::getCmd( ‘option’ ) == ‘com_content’ && Request::getCmd( ‘layout’ ) == ‘blog’)
    <jdoc:include type=”modules” name=”ja-news” style=”raw” />
    <?php endif; ?>[/PHP]

    I hope that would help !

    mrfast Friend
    #377882

    Good job, it work excellent.
    Thanks you

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

This topic contains 3 replies, has 2 voices, and was last updated by  mrfast 13 years, 10 months ago.

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