PHP Classes

Pagerizer long lines

Recommend this page to a friend!

      Pagerizer  >  All threads  >  Pagerizer long lines  >  (Un) Subscribe thread alerts  
Subject:Pagerizer long lines
Summary:long line if many pages
Messages:4
Author:e sm
Date:2008-04-04 21:36:43
Update:2008-04-08 15:25:05
 

  1. Pagerizer long lines   Reply   Report abuse  
Picture of e sm e sm - 2008-04-04 21:36:43
if the total number of pages returned from the query is large (I had one of 2900 record), the Pagerizer extends to the right quite a ways. :-)

any way to add some extra

<< < [11..] [21..] 31 32 33 34 35 36 37 38 39 [41..] [51..] > >>

or

<< < [201..] [211..] [221..] 231 232 233 234 235 236 237 238 239 240 [241..] [251..] > >>

that would be fantastic





.

  2. Re: Pagerizer long lines   Reply   Report abuse  
Picture of Bob Kennedy Bob Kennedy - 2008-04-05 20:00:54 - In reply to message 1 from e sm
You can set this:
"show_every"=>10,
to something like this:
"show_every"=>100
in the config. Then set this:
"pad_current"=>2
to something like this:
"pad_current"=5

Then you'll have every 100 pages linked, and 5 pages on either side of the current linked.

Even better, you could count how many pages you'll have, then set the "show_every" option to about 10% of that. ("show_every"=>(ceil($total_pages/10))).
Then set the "pad_current" to however many you'd like to show front and back of the active link.
That'll give you a nice manageable list. Depending on your pad_current

  3. Re: Pagerizer long lines   Reply   Report abuse  
Picture of e sm e sm - 2008-04-07 04:40:04 - In reply to message 2 from Bob Kennedy
well, not too bad but still a problem. when I use your suggestions, I get:

<< 1 100 200 300 400 500 595 596 597 598 599 600 601 602 603 604 605 700 800 900 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 2100 2200 2300 2400 2492 >>

can it do something like the following?

<< 1 400 500 595 596 597 598 599 600 601 602 603 604 605 700 2300 2400 2492 >>

or

<< 1 400 500 595 596 597 598 599 600 601 602 603 604 605 700 800 2492 >>

If I had 12,492 records instead of 2,492 records, the pagination line would once again become unweildly.

There needs to be a way to limit the number of "boxes" in the pagination line regardless of the number of records.



.

  4. Re: Pagerizer long lines   Reply   Report abuse  
Picture of e sm e sm - 2008-04-08 15:25:05 - In reply to message 2 from Bob Kennedy
I made some modifications.

indexuhelp.com/link_coder/test_page ...

now to see if I can actually integrate it into a site



.