title: how to hide joomla content from frontpage but not from inner pages
body: <p>i m using yootheme joomla template in joomla 1.5.x, my problem is that i want to  </p>
  
  <ul>
  <li>display modules (if enabled ) on front page, no joomla content ( i.e. localhost/project or localhost/project/index.php)</li>
  </ul>
  
  <p>and</p>
  
  <ul>
  <li>display contents &amp; modules ( if enabled ) both on inner pages </li>
  </ul>
  
  <p>my problem is that on  front page (template/yoo_symphony/index.php)  if i write</p>
  
  <p><code>&lt;jdoc:include type="component" /&gt;</code> </p>
  
  <p>then front page display only contents , no modules  :(</p>
  
  <p>and if i write as suggested on <a href="http://www.bigspring.co.uk/research/hiding-joomla-frontpage-content" rel="nofollow noreferrer">here</a>  and <a href="http://www.joomblocks.com/index.php?option=com_content&amp;view=article&amp;id=16:how-to-hide-the-joomla-frontpage&amp;catid=9&amp;Itemid=11" rel="nofollow noreferrer">here</a></p>
  
  <pre><code>$pageview = JRequest::getVar('option','','GET');
  if(!empty($pageview) ) : ?&gt;
    &lt;jdoc:include type="component" /&gt;
  &lt;?php endif; ?&gt;  
  </code></pre>
  
  <p>then front page display all modules but inner pages not display any contents </p>
  
  <p>i have read many articles regarding this, but no hope...:(</p>
  
  <p>please provide me a perfect solution so that i can display modules on front page as well as content on inner pages</p>
  
  <hr>
  
  <p><strong>NOTE:</strong> if i write print_r($_GET) on <code>http://localhost/project</code> or <code>http://localhost/project/index.php</code> then it results</p>
  
  <pre><code>Array
  (
      [option] =&gt; com_content
      [view] =&gt; article
      [id] =&gt; 44
      [Itemid] =&gt; 53
  )
  </code></pre>
  
  <p>means there is <code>url rewriting</code> on front page, my main problem is that how to distiniguish front page from other pages??</p>
  
  <p><strong>ANSWER:</strong></p>
  
  <p>I got answer from my senior, Need to do below steps</p>
  
  <p>1> go to joomla administrator side<br>
    2> then navigate to menu-->main menu  [ <em>Menu Item Manager :[mainmenu]</em> ]<br>
    3> click to  Home ( i.e. your default menu item )[ <em>Menu Item: [ Edit ]</em> ]<br>
    4> now click on change type [ <em>Change Menu Item</em> ]<br>
    5> select <code>Internel link--&gt;Articles --&gt;Front Page --&gt;Front Page Blog Layout</code><br>
    6> Apply &amp; save<br>
    7> now go to index.php and replace <code>&lt;jdoc:include type="component" /&gt;</code> with </p>
  
  <pre><code>&lt;?php  if($_GET['view'] !== 'frontpage' ) :?&gt;
       &lt;jdoc:include type="component" /&gt;
  &lt;?php endif;?&gt;
  </code></pre>
  
  <p><strong>NOTE</strong> : if i write print_r($_GET) on <a href="http://localhost/project" rel="nofollow noreferrer">http://localhost/project</a> or <a href="http://localhost/project/index.php" rel="nofollow noreferrer">http://localhost/project/index.php</a> then it returns</p>
  
  <pre><code>Array
  (
      [option] =&gt; com_content
      [view] =&gt; frontpage  // see now 
      [id] =&gt; 44
      [Itemid] =&gt; 53
  )
  </code></pre>