Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.0-rc1
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2008 at 22:04 UTC
Updated:
3 Sep 2010 at 18:00 UTC
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
Comment #1
merlinofchaos commentedSee 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.
Comment #2
Renee S commentedSweet, thanks :)
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #4
virtualdrupal commentedSorry to reopen this but I can't see theme_views_mini_pager in my includes/theme.inc, am I doing something wrong?
Comment #5
merlinofchaos commentedtheme.inc is in theme, not includes.
Comment #6
TheresaB-1 commentedOne 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?
Comment #7
merlinofchaos commentedThat's exactly how theming is supposed to work. You duplicate the function and replace the theme_ part with the name of your theme.
Comment #9
As If commentedThis does not work properly.
EDITED. Starting a new issue. http://drupal.org/node/503062
Comment #10
rajmataj commentedThe 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.
Comment #11
dawehnerLearn css and you can do it. I don't think it's worth to put an img here.
Comment #12
rajmataj commentedSaw my mistake: was applying the background image to the list tag, not the anchor within the list. Works great now.
Cheers.