Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -260,3 +260,14 @@ 260 260 #set ($discard = $myDoc.save("some comment explaining the change", true)) 261 261 {{/velocity}} 262 262 {{/code}} 263 + 264 += List all attachments of a page = 265 + 266 +{{code}} 267 +{{velocity}} 268 +#set ($myDoc = $xwiki.getDocument('Main.attachment.WebHome')) 269 +#foreach ($attachment in $myDoc.getAttachmentList()) 270 + * $attachment.getFilename() 271 +#end 272 +{{/velocity}} 273 +{{/code}}