Welcome Guest, Not a member yet? Register   Sign In
Pagination always show prev link?
#1

[eluser]Doosje[/eluser]
Hi,
I've searched but couldn't find anything howto show the "prev_link" at all times.
I want it because is nicer to have it constant instead of when you're (for example) on page 3 and suddenly the left arrow is there.
The only thing i can think of is change
Code:
if  (($this->cur_page - $this->num_links) >= 0)
at line 161 (CI version 1.5.4)
to
Code:
if  (($this->cur_page - $this->num_links) <= 0)
It's a quick and dirty hack but i rather not change the core ..

does anyone have an idea?
#2

[eluser]happs74[/eluser]
From what I've read it's that way by design. I understand that it doesn't provide any extra functionality to show: First < 1 2 3 > Last but i find it annoying to click on the > and have to reposition the mouse to hit '>' again because adding 'First <' has bumped it to the right.

I've got this on my todo list, I've already moved a copy of pagination.php into my application/libraries folder for other changes I've made but if your not wanting to do that then you could look at a function that would scan the pagination string for the 'First' link and insert it if not found.




Theme © iAndrew 2016 - Forum software by © MyBB