How to hide jdoc type "component" from the homepage ? - Joomla! Forum - community, help and support


hello,

to insert (or not) module in page, can use countmodules condition.
could same jdoc type "component"?

i hide jdoc type "component" , dedicated content (div/style) homepage or create $condition it.

i've found article "bigspring.co.uk" proposes hack:

code: select all

<?php if (jrequest::getvar('view') != 'frontpage'): ?>
<div id="xxxx">
<jdoc:include type="component" />
</div>
<?php endif ?>

and i've found article "stackoverflow.com".

these articles 2009 , spoke joomla 1.5.
do know if can use joomla 2.5?
or know better way that?

i've tried add hack page, doesn't work!

code: select all

<?php  if($_get['view'] !== 'frontpage' ) :?>
<div id="page_component">
   <div class="pcomponent">
      <?php if($this->countmodules('breadcrumbs')) : ?>
      <div class="pbreadcrumbs"><jdoc:include type="breadcrumbs" /></div>
      <?php endif; ?>
      <div class="pcomponent_content"><jdoc:include type="component" /></div>
   </div>
</div>
<?php endif; ?>

could me?

thanks ;)
nico

review of document http://docs.joomla.org/how_to_determine_if_the_user_is_viewing_the_front_page of help. especially, first example in section 2.5 want.





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

PProHeadless.exe has stopped working error when opening projects in Adobe Media Encoder CS6

Preconditions Failed. - Joomla! Forum - community, help and support