Hi everyone,
I'm making my own theme and have a little trouble with displaing Album and then subalbums on index.php. It should look (in function way) like this:
http://flowplayer.org/tools/demos/scrollable/site-navigation.html . Albums won't change so they can by coded straight into the page (
<img src="thumb"/>). But then I need to display albums that belong to that particular album.
Is there any way to do that by setting to album loop something like - get albums from
http://localhost:8888/webportfolium/index.php?album=albumname ?
I could do that by including frame from album page, but i really don't like this way.
Thanks for every hint.
Comments
http://www.zenphoto.org/documentation/classes/Album.html#methodgetSubAlbums
You will also need some image class methods and in general some PHP knowledge about object orientation.
Please see the documentation on details about the available methods.
Could you please give me some basic hint from where to start? Just give me a bit closer direction where to go. I understand you have better things to do.
Thanks
Take a look at the class methods on the documentation.
The answer is here: http://www.zenphoto.org/support/topic.php?id=4143#post-24729
Just ad this code inside the album loop:
`
<?php<br />
$subalbums = $_zp_current_album->getSubalbums();
foreach ($subalbums as $subalbum) {
$subalbumobj = new Album($_zp_gallery,$subalbum);
echo "getAlbumThumb()."' />
";
}
?>
`