Hi there,
New to Zenphoto but am already finding it very refreshing compared to crappermine.
Anyway I had assumed that displaying the number of albums and images within an album in the album description was not possible, as thumbs etc. are generated on the fly, however...
I went to the showcase and saw this site:
http://www.tuscanypictures.com/This site is clearly showing the number of sub albums and pictures for each album.
How do achieve this? Is it a plugin or a custom hack?
Thanks
Comments
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetNumImages
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetNumSubalbums
So far Zenphoto has become my favorite web app of 2010. I just regret not trying it before.
I can easily get it to give me the totals of the immediate album, however if an album has sub albums and they contain images there is no visibility of this.
Is it possible (and a standard feature) to extract the sum of all images in the child albums of an album. So "this folder contains 1000 images in 4 sub albums" ?
Is it possible to print the total of all images currently in the database / folder?
Thanks
To get the total number of images within an album and its subalbums you have either to create a mysql query to get that or use the object model.
2. Number of all images in total: http://www.zenphoto.org/documentation/classes/Gallery.html#methodgetNumImages
Would you be so kind as to give me a single line of php which would output this.
My php is limited atm, and while i'm trying to learn i'm running into syntax errors.