Loading...
 
Skip to main content

Features / Usability


You are viewing a reply to Counting total files in files gallery

Counting total files in files gallery

Hi B

Nice puzzle!

I think i would do the following:

  • Smarty capture the output of list:
    • type = filegallery
    • gallery_id = 1
    • output object_id + " or "


...so you end up with a string containing (for example) "4 or 5 or 6 or "

  • Then do another plugin list with:
    • type = file
    • gallery_id = "4 or 5 or 6 or " + "1" (i.e. the string you captured above with the parent galleryId added on the end)
    • output whatever you need from the files


Does that make sense?