Counting total files in files gallery
I need to count all the files from one or several files galleries using the wikiplugin list in a smarty template.
If I use the usual {output template=count} it count just the object not the object inside.
IE: I have 3 sub-galleries with a total of 8 pictures.
Copy to clipboard
Gallery pictures (id1) --Gallery 2019 ---- file1 ---- file2 ---- file3 -- Gallery 2020 ---- file4 ---- file5 ---- file6 -- Gallery 2021 ---- file7 ---- file8
If I use {filter content="1" field="gallery_id"} it will return "3" but what I’m looking for is the files count "8".
I could hardcode each gallery_id and create an addition of results but it will be fragile and... dull.
Is there a smart way to ?