Changes for page Attachments

Last modified by Ludovic Dubost on 2024/07/22 15:50

From version 3.1
edited by Ludovic Dubost
on 2015/09/01 11:46
Change comment: Install extension [org.xwiki.platform:xwiki-platform-attachment-ui-7.1]
To version 2.1
edited by Thomas Mortagne
on 2014/09/29 12:35
Change comment: Install extension [org.xwiki.platform:xwiki-platform-attachment-ui-6.2]

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.ludovic
1 +xwiki:XWiki.ThomasMortagne
Content
... ... @@ -10,10 +10,7 @@
10 10   #set ($sortedAttachments = $sorttool.sort($attachmentList, 'date:desc'))
11 11   #set ($lastAttachment = $sortedAttachments.get(0))
12 12   #end
13 - $response.sendRedirect($targetDocument.getURL($docAction, $escapetool.url({
14 - $fieldname: $lastAttachment.filename,
15 - 'form_token': $request.form_token
16 - })))
13 + $response.sendRedirect($targetDocument.getURL($docAction, "$!{fieldname}=$!{lastAttachment.filename}&form_token=$!{escapetool.url($request.get('form_token'))}"))
17 17   #stop
18 18  #end
19 19  {{/velocity}}