Hi,
I'm trying to generate a link to the next album but I would like to skip the album view completely. It looks as if for this to occur I need to generate a link to the first image in the next album, not just a link to the next album.
If anybody could give any pointers on how to do this, it would much appreciated. Thank you.
L
We have functions like this but those are album context sensitive so they are for the current album not the next.
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetFirstImageURL
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetLastImageURL
You will have to work with the object model framework.
Thanks - that'll be really helpful.
I've managed to bodge a solution together, but I've no idea if it's sound...
`
$PrevAlbum = getPrevAlbum();
$firstimg = $PrevAlbum->getImage(0);
echo rewrite_path("/" . pathurlencode($PrevAlbum->name) . "/" . urlencode($firstimg->filename) . im_suffix(), "/index.php?album=" . urlencode($PrevAlbum->name) . "&image=" . urlencode($firstimg->filename));
`
L