![]() |
|
getNumImages and/or sub-albums ? - 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: getNumImages and/or sub-albums ? (/thread-7268.html) |
getNumImages and/or sub-albums ? - shiatostorm - 2010-06-28 I have applied the following to be displayed beneath the thumbnails for albums on the index page: getNumImages and/or sub-albums ? - acrylian - 2010-06-28 Yes, pretty basic even: getNumImages and/or sub-albums ? - shiatostorm - 2010-06-28 Hi, thanks very much for that, that's the sort of thing I was after - an if/else bit of code. I added it as required but first attempt came up an error so I scanned where the function came from on the template-functions file and I was able to adapt it further to count the subalbums: if(getNumImages() == 0) {
} else {
} ` getNumImages and/or sub-albums ? - acrylian - 2010-06-29 Ah, sorry, forgot the count() part (that happens if you answer inbetween..;-)). |