![]() |
|
Print_Album_Menu - subalbumcount - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html) +--- Thread: Print_Album_Menu - subalbumcount (/thread-5406.html) |
Print_Album_Menu - subalbumcount - FilMar - 2009-06-30 Is there a way to have (besides the imagecount) also a subalbum count in the print_album_menu ? Print_Album_Menu - subalbumcount - acrylian - 2009-07-01 "Is there a way" is not really the right question actually. The answer is not without modifying the plugin. Print_Album_Menu - subalbumcount - FilMar - 2009-07-02 Thanks for the answer, I know that everything is possible but was wondering if it was foreseen. Thanks in advance, Print_Album_Menu - subalbumcount - acrylian - 2009-07-02 I have put that as an option (either subalbum or image count, both would be confusing) on my list. can't promise when I get to that though. Print_Album_Menu - subalbumcount - FilMar - 2009-07-03 Thanks, You're probably right about the one or the other option but a 'x photos in y albums' would be nice too ;-). Only that you need to count all levels and sublevels at once then. Print_Album_Menu - subalbumcount - FilMar - 2009-07-04 acrylian, for the moment I don't need the option any more (but I think it may be usefull for others too), I changed my template in a way that I don't use Print_album_menu any more. But I have another question. I found the functions getNumImages and getNumSubalbums but is there also a function already available that counts the images in the subalbums? I will have some toplevel albums (as catagories) wich all contains a number of subalbums. Many thanks in advance, Print_Album_Menu - subalbumcount - acrylian - 2009-07-04 No, there is no direct function to get the number of images within the subalbums of a certain album. You have two way to get those:
Print_Album_Menu - subalbumcount - FilMar - 2009-07-05 OK, thanks, I'll try to figure that out. Keep up the good work... ;-)) Print_Album_Menu - subalbumcount - FilMar - 2009-07-07 OK, it works (almost) I did it via a MySQL query. Thanks in advance, Print_Album_Menu - subalbumcount - sbillard - 2009-07-07 The albumid field of the image is the record ID of the album. You have to query that record and extract the folder field |