Member
Member
MarcelSpijker   2008-04-14, 20:11
#1

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.
is there a function that counts the subalbums and the images in those subalbums?

Member
Member
sbillard   2008-04-14, 20:35
#2

getTotalImagesIn($album)

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

Member
Member
MarcelSpijker   2008-04-14, 20:39
#3

Thanks! Thats one quick response
I have looked in the documentation, but failed to recognize the template-functions.php

This will do the trick )

Member
Member
MarcelSpijker   2008-04-14, 21:43
#4

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.

Member
Member
sbillard   2008-04-14, 22:52
#5

Is it the album who's thumbnail is being displayed on the index page? Then use $_zp_current_album.

Member
Member
MarcelSpijker   2008-04-14, 23:23
#6

You are great! This works perfect now.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.