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

    Hi everybody,
    I combined modules ja_tabs and ja_news_fp make a page news.
    Example:
    I create section “Product Name” and some categories “Features”, “Other versions” and “Adwards”. Create menu “Product Name” with type Section blog layout link to section Product Name. When access Product Name menu will see three tabs(Feature, Other version and Adwards”) with every tab is a category.
    And here is my issue: When I click view full article but position container ja_tabs do not hide. I want position container ja_tabs will hide when view full article like templates ja_taline_iii or ja_seleni.
    more detail please view at: http://zeolite2.fast.com.vn/product-name.html

    @ ja_staff: please view ticket #JAF-749-51738 for full access

    Please let me know how can do that
    Thanks so much

    mrfast Friend
    #377043

    Nobody can help me? or any suggests? too hard or to busy?

    Saguaros Moderator
    #377121

    Hello Mate!

    I understood your issue, everything work well any issue, the module is showed on the article page, because you asigned the module display on the Product Name Menu, so that all article links will have the ItemId parameter of this menu which help joomla system finding and displaying all modules asigned

    => to resolve this issue, You have to hard code in the index.php file of the template to controll it

    for example: you open the file: templatesja_zeoliteindex.php

    and find :

    <?php if ( $this->countModules(‘vm-fp’) ) { ?>
    <div id=”ja-fp”>
    <jdoc:include type=”modules” name=”vm-fp” style=”xhtml” />
    </div>
    <?php } ?>

    replace:

    [PHP]
    <?php if ( $this->countModules(‘vm-fp’) && JRequest::getVar(‘view’) != ‘article’ ) { ?>
    <div id=”ja-fp”>
    <jdoc:include type=”modules” name=”vm-fp” style=”xhtml” />
    </div>
    <?php } ?>
    [/PHP]

    mrfast Friend
    #377300

    Great, it work excellent.
    With your code I have custom something:
    [php]
    <?php if ( $this->countModules(‘vm-fp’) && JRequest::getVar(‘view’) != ‘article’ ) { ?>
    <div id=”ja-productwrap”><div id=”ja-product-bot”><div id=”ja-product-top” class=”clearfix”>
    <div id=”ja-fp”>
    <jdoc:include type=”modules” name=”vm-fp” style=”xhtml” />
    </div>
    <?php if ( $this->countModules(‘ja-slider’) ) { ?>
    <div id=”ja-slider”>
    <jdoc:include type=”modules” name=”ja-slider” style=”xhtml” />
    </div>
    <?php } ?>
    </div></div></div>
    <?php } ?>
    [/php]

    and this code will hide component content

    [php]
    <?php if ( JRequest::getVar(‘view’) == ‘article’ ) { ?>
    <div id=”ja-current-content” class=”clearfix”>
    <jdoc:include type=”component” /
    </div>
    <?php } ?>
    [/php]

    but when view category it do not show, I think I’m missing something. I want if click view sub level(menu or breadcrumbs) it will show mode category blog layout. How can do that.

    Thanks in advance

    mrfast Friend
    #377443

    have anyone any suggest for this issue?

    Saguaros Moderator
    #377639

    Hello Mate

    [PHP]
    <?php if ( JRequest::getVar(‘view’) == ‘article’ ) { ?>
    <div id=”ja-current-content” class=”clearfix”>
    <jdoc:include type=”component” /
    </div>
    <?php } ?>
    [/PHP]

    With these code, the content of component will be showed in the Article Page

    You must change it to :

    [PHP]
    <?php if ( !JRequest::getVar(‘view’) == ‘article’ ) { ?>
    <div id=”ja-current-content” class=”clearfix”>
    <jdoc:include type=”component” /
    </div>
    <?php } ?>
    [/PHP]

    +> The content will not show when you check the article page

    mrfast Friend
    #377683

    <em>@tienhc 222750 wrote:</em><blockquote>Hello Mate

    [PHP]
    <?php if ( JRequest::getVar(‘view’) == ‘article’ ) { ?>
    <div id=”ja-current-content” class=”clearfix”>
    <jdoc:include type=”component” /
    </div>
    <?php } ?>
    [/PHP]

    With these code, the content of component will be showed in the Article Page

    You must change it to :

    [PHP]
    <?php if ( !JRequest::getVar(‘view’) == ‘article’ ) { ?>
    <div id=”ja-current-content” class=”clearfix”>
    <jdoc:include type=”component” /
    </div>
    <?php } ?>
    [/PHP]

    +> The content will not show when you check the article page</blockquote>

    I think you do not understand me. At present when view article it work ok but when view category(Feature, Other Version, Adward,…) it do not show anything. Please, let me know how can category can display.
    Hope you can reply as soon as possible.
    Thanks.

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

This topic contains 7 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