... |
... |
@@ -97,9 +97,8 @@ |
97 |
97 |
#set($attachments = $doc.getAttachmentList()) |
98 |
98 |
{{gallery}} |
99 |
99 |
#foreach($attachment in $attachments) |
100 |
|
- #set($filename = $escapetool.url($attachment.filename)) |
101 |
|
- #if($filename.endsWith(".jpg") || $filename.endsWith(".png") || $filename.endsWith(".webp")) |
102 |
|
- image:$doc.fullName.WebHome@$filename |
|
100 |
+ #if($attachment.filename.endsWith(".jpg") || $attachment.filename.endsWith(".png") || $attachment.filename.endsWith(".webp")) |
|
101 |
+ image:$doc.fullName@$escapetool.url($attachment.filename) |
103 |
103 |
#end |
104 |
104 |
#end |
105 |
105 |
{{/gallery}} |