changing the number of pages displayed in navigator.inc

veverita

Joined: 2003-04-24
Posts: 16
Posted: Wed, 2003-09-10 14:48

Hi There
I'm using gallery 1.3.4p1

I'm trying to alter navigator.inc to display links to all the pages in gallery or an album.

Presently, navigator.inc seems to display the number of pages minus one or 2.

Digging through the code, '$maxpages' and 'spread' seems to govern the number of pages displayed in navigaor.inc.

I can't quite figure out how they relate to one and other though.

Thanks for any suggestions

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Fri, 2003-09-12 11:13

Okay... here's how it works:

$maxpages contains the total number of pages displayed in that view...

$spread contains the *maximum* distance to display in either direction from the current location. However, if you're pressed at one end, it will extend to twice the distance. So dropping the "spread" will narrow the overall extent.

-Beckett (

)

 
ihadmeavision

Joined: 2007-03-13
Posts: 6
Posted: Mon, 2008-02-18 00:56

Does anyone know what file replaced navigator.inc in the new version? I'm trying to do the same thing but I can't find this file. Thank you. ::I::