I'd like to have arrows ( << >> ) in album.php so that visitors can switch to the previous/next album. This works good with
`
<?php if (getPrevAlbum()!="") { ?>
<?php } if (getNextAlbum()!="") { ?>
<?php } ?>
`
..., but I should have a parameter for the title tag. getAlbumTitle only returns the Title of the current album and does not allow parameters. Is it possible to create a workaround?
Wete
Comments
http://www.zenphoto.org/news/zenphotos-object-model-framework
getNext/PrevAlbum return the object of the those albums.
Just that here we get the object via the getNext/prevAlbum functions. Pass that to a variable and use the method to get the title. Exactly the same as in the example.
This is nothing ZP specific, it is general PHP. Please also review the functions documentation on the classes.
$_zp_current_album->getPrevAlbum()->get("title")
$_zp_current_album->getNextAlbum()->get("title")
Also `getPrevAlbum()->getTitle()` would work as well as that returns the object too if there is one.
You may have a look:
http://www.musikverein-zunsweier.de/galerie/rpk2009/