... |
... |
@@ -1,10 +2,12 @@ |
1 |
|
- |
2 |
2 |
{{velocity}} |
3 |
|
-#set ($attachments = $doc.GetAttachmentList ()) |
4 |
|
- |
5 |
|
-{{gallery}} |
6 |
|
-#foreach (attachment in $attachments) #if (attachment.Filename.EndsWith (". Jpg") || attachment. Filename |
|
2 |
+#set ($attachments = $doc.attachmentList) |
|
3 |
+#if ($attachments.size() > 0) |
|
4 |
+ {{gallery}} |
|
5 |
+ #foreach($attachment in $attachments) |
|
6 |
+ #if($attachment.isImage()) |
|
7 |
+ [[image:$attachment.filename]] |
|
8 |
+ #end |
|
9 |
+ #end |
|
10 |
+ {{/gallery}} |
7 |
7 |
#end |
8 |
|
-#end |
9 |
|
-{{/gallery}} |
10 |
10 |
{{/velocity}} |