I would like to have pager turned off for front page but haven't figure out how to do that.

I did not find bottom pager generator in theme files, so it must reside in core files.

Is there any way to remove pager with some setting, or should I build front page some different way?

The site in question is in progress on http://fertil.advertopia.net

Comments

webpoga’s picture

I haven't encountered this problem yet since I don't normally use the default front page and instead use views as a default landing page.

TWEAK YOUR CSS:

Just hide it out off of the front page.

body.front div.pager {
     display:none;
}

or customize it the way you wanted to.

giorgosk’s picture

Yet another way would be to include this function in your template.php

//drupal 6
function phptemplate_pager($tags = array(), $limit = 10, $element = 0, $parameters = array(), $quantity = 9) {
  if (drupal_is_front_page())
	return "";
  else
	return theme_pager($tags, $limit, $element, $parameters, $quantity);
}

this is a drupal 6 specific solution

To do this for drupal 5 find the appropriate function
http://api.drupal.org/api/function/theme_pager/5
and copy it in your template.php and modify it as you wish

This might actually work (I have not tested it)

//drupal 5
function phptemplate_pager($tags = array(), $limit = 10, $element = 0, $parameters = array()) {
  if (drupal_is_front_page())
	return "";
  else
	return theme_pager($tags, $limit, $element, $parameters);
}

for more theme snippets go to http://drupal.org/node/45471

------
GiorgosK
Geoland Web development / web marketing

------
GiorgosK
Web Development

ryndog’s picture

Worked for me, don't forget to clear your cache.