Welcome Guest, Not a member yet? Register   Sign In
Codeigniter Pagination Like Results are paginated at google search page
#1

[eluser]Unknown[/eluser]
I have successfully implemented codeigniter's pagination.. But now need to modify it a bit.. I want it to look and work like the pagination on google search page.. something like this:

[first][prev] [1][2][3] ..[6].. [9][10][11] [next][last]


Any suggestion are much appreciated..
#2

[eluser]Eduard Stankovic[/eluser]
try to use something like this:

Code:
$config = array(
  
.....

   'first_link' => ' [first] ',
   'last_link' => ' [last] ',
  
   'next_link' => '[next] ',
   'prev_link' => ' [prev] ',

   'num_tag_open' => '[',
   'num_tag_close' => ']',
  
   'display_pages' => TRUE,

  );
  $this->pagination->initialize($config);

i hope it helps
#3

[eluser]Unknown[/eluser]
The problem is not the [square brackets]...!! As i mentioned i want to tweak the pagination so it functions like the pagination on stackoverflow or google..

i.e with page splits.

currently my pagination looks like..

Code:
[first][prev] [1][2][3][4][5][6][7][8][9][10][11] [next][last]

i want it to have it some page breaks "...." continuity... hope now it s clear..

Code:
[first][prev] [1][2][3] .... [6] .... [9][10][11] [next][last]
#4

[eluser]srpurdy[/eluser]
http://ellislab.com/forums/viewthread/229587/




Theme © iAndrew 2016 - Forum software by © MyBB