its seems that templates
custom-pager-story.tpl.php
custom-pager-block.tpl.php and so on
doesn't work. Found this code:

function custom_pagers_preprocess_custom_pager(&$vars) {
//.............
  $vars['suggestions'][] = "custom-pager-{$vars['position']}";
  $vars['suggestions'][] = "custom-pager-$node->type";
  $vars['suggestions'][] = "custom-pager-$node->type-{$vars['position']}";
  $vars['suggestions'][] = "custom-pager-$pager->pid";
  $vars['suggestions'][] = "custom-pager-$pager->pid-{$vars['position']}";

But i think here need another key - template_files
Also, i can't understand why phptemplate_preprocess_custom_pager(& $vars) hasn't beeing called. I clean cache :)

Comments

eaton’s picture

Status: Needs work » Closed (duplicate)

This is a known bug in the theming system. Your theme needs to have the core 'custom-pager.tpl.php' file in its own directory, THEN it can supply the more specific versions and implement its own preprocess hooks. It's a frustrating limitation, but there you have it. :-)

akolahi’s picture

Version: 6.x-1.10-beta1 » 6.x-1.x-dev

Using the latest dev version, i have both custom-pager.tpl.php and custom-pager-4.tpl.php (id of the custom pager i would like to theme is 4) in my theme folder. Using the Devel module, i can see that custom-pager.tpl.php is being picked up in my theme module, but even when i'm on a pager-4 page, the custom-pager-4.tpl.php is not being loaded.

to get this to work for me i had to put an if statement if($pager->pid==4) in custom-pager.tpl.php :(