Pages Counting thing ...

josephp

Joined: 2002-10-03
Posts: 172
Posted: Wed, 2002-10-23 02:54

What if I have say 5,000 photos with 100 albums

The gallery will have like:

Pages: >1<2345678910111213 ... to 100 ... It WILL look ugly, agree?

But how I can just make it to:

<< Browse >>

The arrows will go to next or previous page, makes it better nicely?

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Wed, 2002-10-23 03:19

But the navigator already cleanly limits the number of pages shown to 11:

See an <!-- BBCode Start --><A HREF="http://photos.beckettmw.com/sierra2002?&amp;page=11" TARGET="_blank">example</A><!-- BBCode End --> from my gallery.
This album has 17 pages with 151 photos, 9 to a page, but only pages 6 through 16 are numbered on this page.

So if you had a 100 page album and were on page 50, it would show
|< << .45.46.47.48.49 >50< 51.52.53.54.55. >> >|
not
|< << .1.2.3.4.5.6.7.8.9........ >50< .......98.99.100 >> >|

-Beckett (beck@beckettmw.com)

 
josephp

Joined: 2002-10-03
Posts: 172
Posted: Wed, 2002-10-23 03:26

Yes but what about if:

http://www.domain.com/gallery/

If it has 100 albums, will that still show

|< << .45.46.47.48.49 >50< 51.52.53.54.55. >> >|
not
|< << .1.2.3.4.5.6.7.8.9........ >50< .......98.99.100 >> >|

Correct?

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Wed, 2002-10-23 03:48

Do your homework! It works for the album page too.

 
josephp

Joined: 2002-10-03
Posts: 172
Posted: Wed, 2002-10-23 03:55

heheheh I love this challenge! :grin: