Member
Member
amyg   27-07-2007, 05:43
#1

Has anyone worked out a way to make the 'next and previous album' work with subalbums?
Right now, the links send me back to the main gallery page.
thanks in advance

Member
Member
sbillard   27-07-2007, 15:47
#2

Not sure exactly what you are saying, but you might want to check out the effervescence+simpleviewer theme. It has full paging of subalbums.

Member
Member
amyg   27-07-2007, 20:49
#3

Maybe I just needed sleep - I'll try it again - I'm pretty sure I tried with the E.S theme

I want to use this function:
http://www.zenphoto.org/trac/wiki/DeveloperReference#getNextAlbumURLandgetPrevAlbumURL

But what happens is that instead of going to the next album - i end up back at the gallery index - or the next gallery.

I just want users to be able to go album to album, with out having to go back to the index.

Member
Member
sbillard   28-07-2007, 01:16
#4

OK. That function does not yet support subalbums. So it is defaulting to the gallery. I took a quick look. The hack to provide subalbums is not hard, but also not trivial. You would have to make subalbum versions of getNextAlbumURL, getPrevAlbumURL, and the supporting routines: getNextAlbum, getPrevAlbum, getAlbums (you probably can use getSubAlbums for this), and getAlbum.

Member
Member
amyg   28-07-2007, 20:05
#5

OK - I'll try to get my head around that and give it a go
thanks for getting back.

Member
Member
aitf311   10-08-2007, 03:20
#6

sbillard, I tried to use your code for ticket #2 here: http://www.zenphoto.org/trac/ticket/2 but I see now place to import
subalbumfunctions.php

I replaced my other 2 templates with yours and it doesnt break anything but I dont get to page either. Could you let me know what I am going wrong?!

Member
Member
sbillard   10-08-2007, 21:29
#7

Here is the code you need:
``

put this into your custom-functions.php

Member
Member
amyg   14-08-2007, 18:36
#8

lovely!
Thanks again sbillard

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.