Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • SenMel Friend
    #118910

    As known we are modifying some parts of template’s index.php if we show ja-news on frontpage. If it is the case how can we remove pathway “You are here: Home” for just homepage not for the other parts?
    Thank you.

    <?php
    global $mainframe, $option;
    $m_menu = $mainframe->get( "menu" );
    $m_params = new mosParameters( $m_menu->params );
    $m_intro = $m_params->def( "intro", 4 );
    $m_leading = $m_params->def( "leading", 1 );
    if ( $option != "com_frontpage" || $m_intro || $m_leading) {
    ?>
    <?php mosMainBody(); ?>
    <?php } ?>
    <?php if ( mosCountModules("ja-news") ) { ?>
    <div id="ja-newswrap">
    <?php mosLoadModules ( "ja-news", -2 ); ?>
    </div>
    <?php } ?>

    Khanh Le Moderator
    #214894

    In the index.php file, search this code:


    <div id="ja-pathway">
    <strong>You are here:</strong> <?php mosPathway(); ?>
    </div>

    Replace with:


    <?php
    if ( $option != 'com_frontpage') { ?>
    <div id="ja-pathway">
    <strong>You are here:</strong> <?php mosPathway(); ?>
    </div>
    <?php } ?>

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

This topic contains 2 replies, has 2 voices, and was last updated by  Khanh Le 17 years, 1 month ago.

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