Modifications pour le document Download Attachments
Modifié par Paul Libbrecht (admin) le 2021/12/12 21:39
<
>
modifié par Paul Libbrecht (admin)
sur 2016/08/19 20:25
sur 2016/08/19 20:25
modifié par Paul Libbrecht (admin)
sur 2016/08/19 20:54
sur 2016/08/19 20:54
Commentaire de modification :
Il n'y a aucun commentaire pour cette version
Résumé
Détails
- Propriétés de la Page
-
- Contenu
-
... ... @@ -31,7 +31,7 @@ 31 31 ZipEntry entry = new ZipEntry(att.filename); 32 32 entry.setTime(att.getDate().getTime()); 33 33 entry.setSize(att.filesize); 34 - if(uncompressedMimes.contain(att.mimeType)) 34 + if(uncompressedMimes.contains(att.mimeType)) 35 35 entry.setMethod(ZipEntry.STORED); 36 36 else 37 37 entry.setMethod(ZipEntry.DEFLATED); ... ... @@ -49,7 +49,7 @@ 49 49 } else { 50 50 println(""" 51 51 = Download Attachments Macro = 52 -Use as ~{~{downloadAttachments/~}~}to see a linktoa zipof all attachments.52 +Use as ((({{downloadAttachments/}}))) so see a list of attachments. 53 53 """); 54 54 } 55 55
- XWiki.WikiMacroClass[0]
-
- Code de la macro
-
... ... @@ -1,4 +2,4 @@ 1 - 2 2 {{velocity}} 2 +#set($url=$xwiki.getURL("Macros.DownloadAttachments","view","page=$doc.fullName")) 3 3 {{html clean=false}}<a href="$url">Download page attachments</a>{{/html}} 4 4 {{/velocity}} - Description du contenu (non applicable en cas de macro "Sans contenu")
-
... ... @@ -1,0 +1,2 @@ 1 + 2 +