Re: set_display_context_callback() and incorrect pagination
Mike Miller <[email protected]> Tue, 29 Jan 2013 13:23:11 +0200
| Newsgroups | gmane.comp.web.gallery.devel |
|---|---|
| Message-ID | <CAGYq59eXa1w=RqnvgEvbN25R1vB7LpHwWADNzP7UQY7_4-uL5Q@mail.gmail.com> |
On Tue, Jan 29, 2013 at 1:20 PM, Mike Miller <[email protected]> wrote: > On Mon, Jan 28, 2013 at 8:46 PM, Mike Miller <[email protected]> wrote: >> Is there a better API to use to get the "siblings" (cousins, perhaps) >> rather than asking for the parent's children? > > I just saw that rWatcher handled this in his tag_albums module using > "dynamic_siblings"; see > https://github.com/gallery/gallery3-contrib/tree/master/3.0/modules/tag_albums/--%20Theme%20Files/Grey%20Dragon%203.2.2 > for the theme modifications. > > This looks like a rather nice way to let controllers pass information > about their virtual environments. What do you think about putting this > into tag, dynamic, search, latestupdates, and any other modules that > set their own display context, for themes or modules that want to show > more information about siblings (maybe "neighbors" is a better word > here) than the default previous_page_url / next_page_url? One thing that I forgot to mention; one downside about dynamic_siblings is that he's still computing the URL using a hardcoded scheme. Perhaps the variables should include a get_url callback (or does #item->url() provide this already?)? > -- Mike ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d __[ 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 ]