Re: set_display_context_callback() and incorrect pagination
Mike Miller <[email protected]> Sun, 10 Feb 2013 11:37:06 +0200
| Newsgroups | gmane.comp.web.gallery.devel |
|---|---|
| Message-ID | <CAGYq59f9B+3Lz8HmASCd8gg4NQpuGpCMDyLu9STGhNBC49eEAQ@mail.gmail.com> |
On Sat, Feb 9, 2013 at 9:58 PM, Bharat Mediratta <[email protected]> wrote: > You should have position - we return it in the display context. I just added support for limit and offset in siblings so now in thumbnav you can do: > > $siblings = $theme->siblings(5, max($theme->position - 2, 0)); > > That returns 5 items, 2 on either side. At the risk of asking a silly question... did you commit this? I didn't see anything at https://github.com/gallery/gallery3/commits/master Thanks -- Mike ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb __[ g a l l e r y - d e v e l ]_________________________ [ list info/archive --> http://gallery.sf.net/lists.php ] [ gallery info/FAQ/download --> http://gallery.sf.net ]