Changes for page Attachments
Last modified by Ludovic Dubost on 2024/07/22 15:50
From version 9.1
edited by Ludovic Dubost
on 2019/08/02 10:59
on 2019/08/02 10:59
Change comment:
Migrated property [contentJavaType] from class [XWiki.WikiMacroClass]
To version 10.1
edited by Ludovic Dubost
on 2019/11/21 10:03
on 2019/11/21 10:03
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-attachment-ui/11.9]
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (4 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,9 +1,12 @@ 1 1 {{velocity output="false"}} 2 +#set ($translationPrefix = 'xe.attachmentSelector') 3 + 2 2 #if ($request.xaction == 'postUpload') 3 3 #set ($targetDocument = $xwiki.getDocument($request.get('docname'))) 4 4 #set ($targetAttachDocument = $xwiki.getDocument($request.get('targetdocname'))) 5 5 6 6 #set ($fieldname = $request.get('fieldname')) 9 + #set ($comment = $services.localization.render("${translationPrefix}.postUpload.comment", [$fieldname])) 7 7 #set ($docAction = $request.get('docAction')) 8 8 #set ($attachmentList = $targetAttachDocument.getAttachmentList()) 9 9 #if ($attachmentList && $attachmentList.size() > 0) ... ... @@ -12,6 +12,7 @@ 12 12 #end 13 13 $response.sendRedirect($targetDocument.getURL($docAction, $escapetool.url({ 14 14 $fieldname: $lastAttachment.filename, 18 + 'comment': $comment, 15 15 'form_token': $request.form_token 16 16 }))) 17 17 #stop ... ... @@ -22,7 +22,6 @@ 22 22 ## 23 23 ## Macros 24 24 ## 25 -#set ($translationPrefix = 'xe.attachmentSelector') 26 26 #set ($attachmentPickerDocName = 'XWiki.AttachmentSelector') 27 27 28 28 $xwiki.ssx.use($attachmentPickerDocName)
- XWiki.WikiMacroClass[0]
-
- Cached
-
... ... @@ -1,0 +1,1 @@ 1 +No - Asynchronous rendering
-
... ... @@ -1,0 +1,1 @@ 1 +No
- XWiki.WikiMacroParameterClass[0]
-
- Parameter type
-
... ... @@ -1,0 +1,1 @@ 1 +org.xwiki.model.reference.DocumentReference
- XWiki.WikiMacroParameterClass[10]
-
- Parameter type
-
... ... @@ -1,0 +1,1 @@ 1 +org.xwiki.model.reference.AttachmentReference
- XWiki.WikiMacroParameterClass[18]
-
- Parameter type
-
... ... @@ -1,0 +1,1 @@ 1 +org.xwiki.model.reference.DocumentReference