![]() |
|
Tags count only for published obj - 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: Tags count only for published obj (/thread-10388.html) |
Tags count only for published obj - BigLouis87 - 2012-09-08 I use the Tags count only for published obj - acrylian - 2012-09-08 It is not that simple to ask for "show = 1" since images inherit their status from their parent. An album for example and that also from its parent. So an published image and its published album may all be in an unpublished album and therefore not counted (although you can link to any unpublished item directly). So you need to check the full tree first. Tags count only for published obj - BigLouis87 - 2012-09-08 uhm, you're right... infact I have published images in unpublished albums and they also should not be counted. Tags count only for published obj - acrylian - 2012-09-08 In any case have to use the object model first and build the query on its results. If you want to do this right now look at the functions getImageAlbumList(), getImageStatistics, getAlbumStatistics functions of the image_album_statistics plugin. Those actually do what this function would need. You could open a ticket as I have to discuss that with sbillard. Of course this means overhead. |