Welcome Guest, Not a member yet? Register   Sign In
Pagination produces the wrong page number
#5

[eluser]David Johansson[/eluser]
I don't like the pagination class, so I rewrote all of it in my own adaptation. One of the changes I made was to let the URI pass the page number instead of the offset.
I also created a function that would receive the current page (instead of getting it from the URI) so it would go throught the same validation process.
Also I made it possible to add inactive prev/next-buttons with custom text if you for instance want to have a grayed out image showing when you can't go to next/prev page (same with first/last)-
Finally I also accept 0 as num_link that would show all pages as links.

If someone's interested in the code PM me Smile


Messages In This Thread
Pagination produces the wrong page number - by El Forum - 08-07-2009, 01:31 PM
Pagination produces the wrong page number - by El Forum - 08-07-2009, 01:58 PM
Pagination produces the wrong page number - by El Forum - 08-07-2009, 01:58 PM
Pagination produces the wrong page number - by El Forum - 08-07-2009, 02:07 PM
Pagination produces the wrong page number - by El Forum - 08-07-2009, 07:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB