Changes for page Attachments
Last modified by Ludovic Dubost on 2024/07/22 15:50
From version 2.1
edited by Thomas Mortagne
on 2014/09/29 12:35
on 2014/09/29 12:35
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-attachment-ui-6.2]
To version 3.1
edited by Ludovic Dubost
on 2015/09/01 11:46
on 2015/09/01 11:46
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-attachment-ui-7.1]
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -xwiki:XWiki. ThomasMortagne1 +xwiki:XWiki.ludovic - Content
-
... ... @@ -10,7 +10,10 @@ 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, "$!{fieldname}=$!{lastAttachment.filename}&form_token=$!{escapetool.url($request.get('form_token'))}")) 13 + $response.sendRedirect($targetDocument.getURL($docAction, $escapetool.url({ 14 + $fieldname: $lastAttachment.filename, 15 + 'form_token': $request.form_token 16 + }))) 14 14 #stop 15 15 #end 16 16 {{/velocity}}