By blockedmind on
I don't know why, but I can't override pager on template.php. I have tried every possible solution given on drupal.org. Shouldn't it override theme_pager() using phptemplate_pager()? If that so why it doesn't work? It doesn't effect pager at all. I always get the default pager.
Comments
oh... it turns out views
oh... it turns out views module has its own pager function now... overriding theme_pager() was enough in drupal 5. but i have to do more in drupal 6. lets see whether i can override theme_views_mini_pager() now...
Trying to do this too, thanks
Trying to do this too, thanks for posting your note: I was wondering about the same lack of response from my template.php. Did you eventually get it to work?
Copy the
Copy the theme_views_mini_pager() function from theme.inc in views module and paste it into template.php of your theme.
Then rename the function from theme_views_mini_pager() to mythemename_views_mini_pager() and clear the cache.
What about the full pager?
I want to override the full views pager and just add some extra classes. I don't want to recreate the full pager from the mini one. However, theme_views_mini_pager() is the only pager function in theme.inc in views.
Anyone got any ideas?
gah, as ridiculous as it may
gah, as ridiculous as it may sound, and embarrassing to admit, i wasn't rebuilding the theme registry when i overrode [theme]_pager() .. don't forget to rebuild your theme registry!
I tried to override the full
I tried to override the full pager.
You can put either your theme name or phptemplate in the function