Hi... how do I theme the mini-pager?? I'm doing an image-replace so I'd like to plunk a <span> in there, but I can't figure out where to do that...!

Comments

merlinofchaos’s picture

Status: Active » Fixed

See theme_views_mini_pager in theme.inc

Note that the mini pager is not themed per view (though, heh, it could be pretty easily now that I look at the code). In fact, that's a great idea, and I've just committed the code to do that.

Though it won't work entirely perfectly for the base pager, it should work fine for the mini pager as views owns that one.

Renee S’s picture

Sweet, thanks :)

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

virtualdrupal’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

Sorry to reopen this but I can't see theme_views_mini_pager in my includes/theme.inc, am I doing something wrong?

merlinofchaos’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

theme.inc is in theme, not includes.

TheresaB-1’s picture

Status: Closed (fixed) » Active

One question, can I duplicate the function in my template.php so that I am not disturbing the core view files? If not is there a way I can define it for just my theme and not touch the view modules files?

merlinofchaos’s picture

Status: Active » Fixed

That's exactly how theming is supposed to work. You duplicate the function and replace the theme_ part with the name of your theme.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

As If’s picture

This does not work properly.

EDITED. Starting a new issue. http://drupal.org/node/503062

rajmataj’s picture

Status: Closed (fixed) » Active

The linked page in Reply #9 works but the original question of adding in a custom image instead of a html character is still unanswered. Following instructions in http://drupal.org/node/503062 works but html characters are escaped, so the html code for referencing an image does not work. Can anyone point out how to get around this? Any help would be appreciated.

Thanks.

dawehner’s picture

Status: Active » Fixed

Learn css and you can do it. I don't think it's worth to put an img here.

rajmataj’s picture

Saw my mistake: was applying the background image to the list tag, not the anchor within the list. Works great now.

Cheers.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.