Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1066741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:03:40+00:00 2026-05-16T20:03:40+00:00

i m using yootheme joomla template in joomla 1.5.x, my problem is that i

  • 0

i m using yootheme joomla template in joomla 1.5.x, my problem is that i want to

  • display modules (if enabled ) on front page, no joomla content ( i.e. localhost/project or localhost/project/index.php)

and

  • display contents & modules ( if enabled ) both on inner pages

my problem is that on front page (template/yoo_symphony/index.php) if i write

<jdoc:include type="component" />

then front page display only contents , no modules 🙁

and if i write as suggested on here and here

$pageview = JRequest::getVar('option','','GET');
if(!empty($pageview) ) : ?>
  <jdoc:include type="component" />
<?php endif; ?>  

then front page display all modules but inner pages not display any contents

i have read many articles regarding this, but no hope…:(

please provide me a perfect solution so that i can display modules on front page as well as content on inner pages


NOTE: if i write print_r($_GET) on http://localhost/project or http://localhost/project/index.php then it results

Array
(
    [option] => com_content
    [view] => article
    [id] => 44
    [Itemid] => 53
)

means there is url rewriting on front page, my main problem is that how to distiniguish front page from other pages??

ANSWER:

I got answer from my senior, Need to do below steps

1> go to joomla administrator side
2> then navigate to menu–>main menu [ Menu Item Manager :[mainmenu] ]
3> click to Home ( i.e. your default menu item )[ Menu Item: [ Edit ] ]
4> now click on change type [ Change Menu Item ]
5> select Internel link-->Articles -->Front Page -->Front Page Blog Layout
6> Apply & save
7> now go to index.php and replace <jdoc:include type="component" /> with

<?php  if($_GET['view'] !== 'frontpage' ) :?>
     <jdoc:include type="component" />
<?php endif;?>

NOTE : if i write print_r($_GET) on http://localhost/project or http://localhost/project/index.php then it returns

Array
(
    [option] => com_content
    [view] => frontpage  // see now 
    [id] => 44
    [Itemid] => 53
)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T20:03:40+00:00Added an answer on May 16, 2026 at 8:03 pm

    I do this on several sites when I really don’t need anything but modules on the home page. This works perfectly everywhere I have ever used it. Just add this in your template.

    <?php
    $menu = &JSite::getMenu();
    if ($menu->getActive() != $menu->getDefault()) {
    ?>
        <jdoc:include type="component" />
    <?php } ?>
    

    One more thing to mention, In this way you will not get the Search results, as they are displayed on default page. – If you create a search page menu item, which you should if you want to control the modules on that page, then this will not affect the search page at all.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Joomla 1.7 with a Yootheme template. There is an option to
I have a weird problem, I am using print_r($obj) in Joomla YOOtheme ZOO extension
Using WebViewBrush I can render web page content (it's screen shot) to e.g. Rectangle
Using Yii, I want to delete all the rows that are not from today.
Using a populated Table Type as the source for a TSQL-Merge. I want to
Using WPF/PRISM I want to log my messages through ILoggerFacade to my GUI (A
Using mercurial, I've run into an odd problem where a line from one committer
Using php/html, I want to retrieve email addresses (plus other information) from MySQL and
Using emacs on Ubuntu 11.10. I want to connect to a SQL Server database
Using MVVM. I have a DataTemplate which I am using to display an expander

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.