Wiki source code of File Manager
Last modified by Andrey Che on 2018/12/10 14:09
Hide last authors
1.1 | 1 | {{velocity}} | |
2 | #set ($columnsProperties = { | ||
3 | 'doc.name': {"type":"text","size":10,"link":"view"}, | ||
4 | '_attachments': {"sortable":false,"filterable":false,"html":true}, | ||
5 | '_actions': {"sortable":false,"filterable":false,"html":true,"actions":["edit","delete"]} | ||
6 | }) | ||
7 | #set ($options = { | ||
8 | 'className': 'FileManager.FileManagerClass', | ||
9 | 'translationPrefix': 'filemanager.livetable.', | ||
10 | 'tagCloud': true, | ||
11 | 'rowCount': 15, | ||
12 | 'maxPages': 10, | ||
13 | 'selectedColumn': 'doc.name', | ||
14 | 'defaultOrder': 'asc' | ||
15 | }) | ||
16 | ## Add the filter by selected tags | ||
17 | #if($request.tag) | ||
18 | #set ($discard = $options.put('selectedTags',["${request.tag}"])) | ||
19 | #end | ||
20 | ## | ||
21 | #set ($columns = ['doc.name', '_attachments', '_actions']) | ||
22 | #livetable('filemanager' $columns $columnsProperties $options) | ||
23 | {{/velocity}} |