Wiki source code of Attachments
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{velocity}} | ||
2 | #set ($discard = $xwiki.ssfx.use('js/xwiki/viewers/attachments.css', true)) | ||
3 | #set ($sourceParameters = $escapetool.url({ | ||
4 | 'className': 'XWiki.AllAttachments', | ||
5 | 'resultPage': 'XWiki.AllAttachmentsResults', | ||
6 | 'translationPrefix': 'platform.index.attachments.' | ||
7 | })) | ||
8 | #set ($liveDataConfig = { | ||
9 | 'meta': { | ||
10 | 'propertyDescriptors': [ | ||
11 | { 'id': 'mimeType', 'displayer': 'html'}, | ||
12 | { 'id': 'filename', 'displayer': { 'id': 'link', 'propertyHref': 'fileurl' } }, | ||
13 | { 'id': 'doc.fullName', 'displayer': 'html' }, | ||
14 | { 'id': 'filesize', 'displayer': 'html' }, | ||
15 | { 'id': 'date', 'filter': 'date'}, | ||
16 | { 'id': 'author', 'displayer': 'html' } | ||
17 | ], | ||
18 | 'actions': [ | ||
19 | {'id': 'view', 'allowProperty': 'acclev'} | ||
20 | ] | ||
21 | } | ||
22 | }) | ||
23 | |||
24 | {{liveData | ||
25 | id='allattachments' | ||
26 | source='liveTable' | ||
27 | sourceParameters="$sourceParameters" | ||
28 | properties='mimeType,filename,doc.fullName,filesize,date,author' | ||
29 | sort='filename:asc' | ||
30 | }}$jsontool.serialize($liveDataConfig){{/liveData}} | ||
31 | {{/velocity}} |