Jump to content
Larry Ullman's Book Forums

Recommended Posts

Following the book I have successfully used pagination. It looks great!

 

Now however, Im getting to the point where I have multiple rows of page numbers. What could I start to look at so instead of this,

 

< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

16 17 18 19 20 21 22 23 24 25 26 27

28 29 30 31 32 33 34 35 36 37 38 39>

 

I could get this,

 

< 1... 8 9 10 11 12 13 ...39 >

 

Thanks!

Link to comment
Share on other sites

Interesting question! I guess I'd get a count of how many pages there are. Link to the first. Then find the middle, and link to a few pages before and after the middle, then link to the last page. 

Link to comment
Share on other sites

  • 2 weeks later...

Beltic, certainly, anything is possible, but I think it might be best to look around the web and see what other people are doing.

Here are a few ideas:

  1. Provide more results per page.
  2. Do what Larry suggested, which is calculate the total number of pages, and then calculate the middle, or allow jumping to 2-3 pages on both sides of the current page, etc.
  3. Provide a search feature or filters that allow the user to find what they really need. If you really have so many rows that you have that many pages, no one is going to search through all of that for what they need. As such, some sort of searching/filtering is necessary, I think.

 

Thanks.

Link to comment
Share on other sites

 Share

×
×
  • Create New...