I've been using banners and blocks on the page to contain what you can think of as a greeting to site visitors. The site now contains many stories, so Drupal helpfully puts multipage navigation links at the bottom of the site (that is, 1 2 3 . . . Next Last). So far so good.

I've configured the banners and blocks to be displayed only on the page. However, when a user clicks to read the stories beyond those which are initially shown on the *actual* front page, the banners and blocks keep getting shown on "page 2", "page 3", and so on.

This means I have "greetings" shown on EVERY page that displays stories, even though a site visitor is looking at stories that have rotated off of the actual first page. It makes for a very confusing user experience. Will someone tell me how to show banners and blocks on the actual, literal first page--and not show those same banners and blocks on the subsequent "page 2, page 3 . . ." pages that contain older stories?

Comments

kjl’s picture

instead of using "front" to control display you can use php in the block, something along the line of

$show = FALSE;
if (arg(0) == 'node' && !arg(1) && !$_GET['page']) {
  $show = TRUE;
}

return $show;
o4tuna’s picture

This worked perfectly, kjl. Thank you!