0 Votes

Changes for page AutoGallery

Last modified by Ryan C on 2025/06/17 16:30

From version 4.1
edited by Ryan C
on 2025/06/17 16:30
Change comment: There is no comment for this version
To version 1.1
edited by Ryan C
on 2025/06/16 15:16
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -1,12 +1,0 @@
1 -{{velocity}}
2 -#set($attachments = $doc.getAttachmentList())
3 -
4 -{{gallery}}
5 -#foreach($attachment in $attachments)
6 - #if($attachment.filename.endsWith(".jpg") || $attachment.filename.endsWith(".png") || $attachment.filename.endsWith(".webp"))
7 - image:$attachment.filename
8 - #end
9 -#end
10 -{{/gallery}}
11 -{{/velocity}}
12 -
Execution is isolated
... ... @@ -1,1 +1,0 @@
1 -Yes
Cached
... ... @@ -1,1 +1,0 @@
1 -No
Supports inline mode
... ... @@ -1,1 +1,0 @@
1 -No
Macro description
... ... @@ -1,1 +1,0 @@
1 -Generates a gallery of all image attachments on this page.
Asynchronous rendering
... ... @@ -1,1 +1,0 @@
1 -No
Default categories
... ... @@ -1,1 +1,0 @@
1 -Formatting
Macro name
... ... @@ -1,1 +1,0 @@
1 -AutoGallery
Context elements
... ... @@ -1,1 +1,0 @@
1 -Document
Macro id
... ... @@ -1,1 +1,0 @@
1 -autogallery
Macro content type
... ... @@ -1,1 +1,0 @@
1 -Unknown
Macro content availability
... ... @@ -1,1 +1,0 @@
1 -No content