Drupal: Print only on main page (or print on all but the main page)
Submitted by chris on October 10, 2006 - 18:08
Print breadcrum on all page except home/front page...
<?php if (!$_REQUEST["q"]=="" && !(variable_get('site_frontpage', 'node')==$_REQUEST["q"]))
print $breadcrumb; ?>
In other words to only print something on the main page use:
if ($_REQUEST["q"]=="" || (variable_get('site_frontpage', 'node')==$_REQUEST["q"])) {
print ....;
}
It appears the following are not reliable or consistant (any longer?):
$is_front
$page == 0


Delicious
Digg
Reddit
Google
Technorati
On a Drupal site, I want to
On a Drupal site, I want to restrict the search to a certain content type only. To avoid creating confusion for the user, I also want this to happening in the background (ie hidden). I also to not want to the advanced search turn on since it would expose everything to the user...