Bala Paranj
2008-Jan-27 21:52 UTC
will paginate - how to display ... and restrict number of pages?
I want the digg style pagination which looks like this: http://www.strangerstudios.com/sandbox/pagination/diggstyle.php Does anyone know how to make the will_paginate plugin to restrict the number of page links between the previous and next links? TIA. -- http://www.rubyplus.org/ Free Ruby and Rails Screencasts --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Brad Bennett
2008-Jan-27 22:04 UTC
Re: will paginate - how to display ... and restrict number of pages?
The :inner_window option tells the will_paginate view helper how many
links to display before and after the current page. So if you''re
displaying page 100 of 200, and :inner_window is 2, then there would
be links to 98, 99, (current page), 101, 102.
The :outer_window option determines the number of links that print
just after the beginning ("Prev") and just before the end
("Next") of
the list of links. Using the same example as before, setting
the :outer_window to 3 would result in this:
Next 1 2 3 ... 98 99 (current page) 101 102 ... 198 199 200 Prev
Brad
On Jan 27, 1:52 pm, "Bala Paranj"
<bcpar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I want the digg style pagination which looks like
this:http://www.strangerstudios.com/sandbox/pagination/diggstyle.php
>
> Does anyone know how to make the will_paginate plugin to restrict the
> number of page links between the previous and next links? TIA.
>
> --http://www.rubyplus.org/
> Free Ruby and Rails Screencasts
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---