test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • aardcom Friend
    #166788

    Is there a way to not show the site header and main navigation for an article in this template. I have a few pages that I want to show only custom modules and hide the others. There are no overides for this template and I’m not sure how I can accomplish this manually.

    Sherlock Friend
    #403889

    hi aardcom,

    You want to hide the header and top nav section for a determining article,right ?
    example you want to hide the main navigation in a article page you can try as below
    Open the file of templatesja_drimiaindex.php, Look for this

    <div id=”ja-mainnav”>
    <?php
    //Gen menu for CSS, MOO
    //Gen first level menu for Split, Dropline
    $jamenu->genMenu (0);
    ?>

    </div>

    change it to

    <?php if(JRequest::getCmd(‘option’)==’com_content’ && JRequest::getCmd(‘view’)==’article’ && JRequest::Int(‘id’)==your article id goes here) { ?>
    <div id=”ja-mainnav”>
    <?php
    //Gen menu for CSS, MOO
    //Gen first level menu for Split, Dropline
    $jamenu->genMenu (0);
    ?>

    </div>
    <?php } ?>

    The snap code I added here help to detect if it is on a article page with a determine id
    Notice replace ‘your article id goes here’ with actual article ID.

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

This topic contains 2 replies, has 2 voices, and was last updated by  Sherlock 13 years, 4 months ago.

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