ZenphotoCMS Forum
Last album on index page - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Last album on index page (/thread-12482.html)



Last album on index page - jerzy - 26-03-2016

Hello, I'm looking for a way to put last updated album on index page, but album will be opened, with thumbnails with printCustomSizedImage() function. Is it possibile? At this time I wrote a piece of theme for showing albums where thumbnails are integrated with the script of touching devices, sample is here: http://mimam.net/slowacja/
I am very happy with Zenphoto, it is very fast and flexible, thanks for such a great thing!




Last album on index page - fretzl - 26-03-2016

Instead of the next_album() loop on index.php you could use something like:

`

">

`




Last album on index page - jerzy - 26-03-2016

Yes, this is just what I was looking for! thank you very much!




Last album on index page - jerzy - 27-03-2016

Once again, sorry - how to get only title from getAlbumStatistic() ?
I've found something like this, but it call thumbnail only..




Last album on index page - acrylian - 27-03-2016

getAlbumStatistics() returns an array of album objects. So:
$latestmtimealbum = getAlbumStatistic(1, "latest-mtime"); echo $latestmtimealbum[0]->getTitle();
http://www.zenphoto.org/news/zenphotos-object-model-framework/