... |
... |
@@ -93,6 +93,21 @@ |
93 |
93 |
|
94 |
94 |
== Images and Videos == |
95 |
95 |
|
96 |
|
-{{attachmentGalleryPicker/}} |
|
96 |
+{{velocity}} |
|
97 |
+#set($attachments = $doc.getAttachmentList()) |
97 |
97 |
|
|
99 |
+#macro(imageentry $filename) |
|
100 |
+#if($filename.endsWith(".jpg") || $filename.endsWith(".png") || $filename.endsWith(".webp")) |
|
101 |
+ image:$doc.space/$doc.name/WebHome@$escapetool.url($filename) |
|
102 |
+#end |
|
103 |
+#end |
|
104 |
+ |
|
105 |
+{{gallery}} |
|
106 |
+#foreach($attachment in $attachments) |
|
107 |
+ #imageentry($attachment.filename) |
|
108 |
+#end |
|
109 |
+{{/gallery}} |
|
110 |
+{{/velocity}} |
|
111 |
+ |
|
112 |
+ |
98 |
98 |
{{putFootnotes/}} |