ZenphotoCMS Forum
printLatestImages of Current Album only - 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: printLatestImages of Current Album only (/thread-10217.html)



printLatestImages of Current Album only - Darkness - 2012-07-20

I'm trying to use printlatestimages in album.php. Having a bit of trouble trying to get printlatestimages to display the latest images from the current album only. I basically need to get the folder name of the current album. I tried but it always returns empty no matter where I put it. Printalbumdata on the other hand works. But I need to include it in the function instead of echoing it.




printLatestImages of Current Album only - acrylian - 2012-07-20

You have to use the already setup global for the current album. Please review the object model tutorial.




printLatestImages of Current Album only - hkdigit - 2012-07-21

Hi Darkness,

Did you enable image_album_statistics plugin?

http://www.zenphoto.org/documentation/plugins/_zp-extensions---image_album_statistics.php.html#functionprintLatestImages

Beside, not sure if following return current album name, please try:

echo $album->name;

Hope this help.




printLatestImages of Current Album only - acrylian - 2012-07-21

$album will not work unless setup manually use the current album global as described on the tutorial.




printLatestImages of Current Album only - Darkness - 2012-07-22

I got it working using:

printLatestImagesbyDate(6, $_zp_current_album->name);