Re: set_display_context_callback() and incorrect pagination

Mike Miller <[email protected]> Tue, 29 Jan 2013 13:20:34 +0200
Newsgroups gmane.comp.web.gallery.devel
Message-ID <CAGYq59e06BhmqY_nTr7b=Tm9H8r9ViN7YN03j348HOnMA4gtqA@mail.gmail.com>
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?

-- 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 ]