ZenphotoCMS Forum
image n of m in search album - 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: image n of m in search album (/thread-4296.html)



image n of m in search album - marcov - 2008-12-22

Is there a way to find "m", the total number of images in a search, and display it along with the current image "n", as "image n of m", while paging through individual images in a search album?

I see that the search.php code in the breadcrumb

$total = getNumImages() + getNumAlbums()

correctly gets the total number of images for a search, but I can not (don't know how to) pass that $total to the image.php file so that I can display it as the "m" in "image n of m".




image n of m in search album - acrylian - 2008-12-22

Try the nightly, getNumImages() and imageNumber() will return the values of the search if viewing search results and not the values of the albums the results are in.