tags:

views:

246

answers:

1

Hi,

I have an image gallery within a Drupal site that uses the 'Image Gallery' module (funnily enough...). There is a standard 'Views' pagination system that breaks down the gallery pages into manageable chunks, and which at the same time restricts the number of page links shown (indicated by ellipses), e.g.:

<<first <previous ... 3 4 5 6 7 8 9 10 11 ... next> last>>

So at the moment there are always nine page links shown. Basically I want to find out how to modify this so there are (for example) only five links shown:

<<first <previous ... 6 7 8 9 10 ... next> last>>

I'm guessing there is some bit of PHP in the module's code that manages this, but I'm loathe to go fiddling about without knowing what I'm doing!

Cheers, James

+3  A: 

If you are happy with hacking core and making this a global change to your site the quickest way is to modify includes/pager.inc and change the default value of $quantity to be the number you want.

There is a proper way to do this as well using your own theme function, if I get a chance I'll post a how to for that too.

Jeremy French
Grand. I'd be interested to know about the other way to do it, but this is fine for now!
james6848