![]() |
|
counting subalbum images - 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: counting subalbum images (/thread-2671.html) |
counting subalbum images - MarcelSpijker - 2008-04-14 I want to have the following line below the album title: Total images: xx in xx subalbums I know the function getNumImages. This is fine if there are no subalbums. counting subalbum images - sbillard - 2008-04-14
The functions are all documented in our User Guide. Most of the ones of interest will be in the template-fuinctions.php documentation--http://www.zenphoto.org/documentation/zenphoto/_template-functions.php.html counting subalbum images - MarcelSpijker - 2008-04-14 Thanks! Thats one quick response This will do the trick ) counting subalbum images - MarcelSpijker - 2008-04-14 Ok, for some reason it fails on me. I have the following code that gave me imagecount without sub and the subalbumcount:
I tried to replace getNumImages() for getTotalImagesIn($album), didnt work, the site stopped showing after the first album thumb. I tried to get the albumId and put that in $album, same not working result. How do i get the correct $album ?? I forgot to say that this is for the index page, so that i am not yet in a album. counting subalbum images - sbillard - 2008-04-14 Is it the album who's thumbnail is being displayed on the index page? Then use counting subalbum images - MarcelSpijker - 2008-04-14 You are great! This works perfect now. |