AllWireframes
#macro(collectImageAttachments $spaceName)
Search for all documents in the specified space
#set ($query = "where doc.space = :space")
#set ($documents = $xwiki.searchDocuments($query, $maptool.map('space', $spaceName)))
Iterate through each document to list its attachments
#foreach ($docFullName in $documents)
Get the document object
#set ($doc = $xwiki.getDocument($docFullName))
Get and list the image attachments
#set ($attachments = $doc.getAttachmentList())
#foreach ($attachment in $attachments)
#if ($attachment.mimeType.startsWith("image/"))
#end
#end
#end
#end
#collectImageAttachments("Wireframes")

This project is being financed by the French State as part of the France 2030 program
Ce projet est financé par l’État Français dans le cadre de France 2030