I have been using the pagination script in an ecommerce site of mine, and when I started it was working great... but as the site has grown, so have the results.
I never imaged I'd have so many products and didn't really plan accordingly... I've got over 400 in one category, which gives me 20+ pages (this ends up breaking the formatting of the page). If you wanted to limit the number of results shown, what would be the best way to accomplish this using the existing script as a base?
I'm thinking of something like.... << FIRST ... 4 | 5 | 6 | 7 | 8 ... LAST >>
Instead of PREVIOUS | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 NEXT
Not looking for anyone to write the code, just trying to wrap my head around how to tackle the problem and have the pages be dynamic if there is more than a given number (say 10 pages.)
Thanks as always for the amazing book!