Drupal: Print only on main page (or print on all but the main page)
Submitted by chris on October 10, 2006 - 18:08.
Drupal Snippets
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