0 Votes

Wiki source code of File Manager

Last modified by Ryan C on 2025/03/07 00:50

Show last authors
1 {{velocity}}
2 #set ($driveClassReference = $services.model.createDocumentReference('', 'FileManagerCode', 'DriveClass'))
3 #if ($services.licensing.licensor.hasLicensureForEntity($driveClassReference))
4 #set ($columnsProperties = {
5 'doc.name': {"type":"text","size":10,"link":"view"},
6 '_attachments': {"sortable":false,"filterable":false,"html":true},
7 '_actions': {"sortable":false,"filterable":false,"html":true,"actions":["edit","delete"]}
8 })
9 #set ($options = {
10 'className': 'FileManager.FileManagerClass',
11 'translationPrefix': 'filemanager.livetable.',
12 'tagCloud': true,
13 'rowCount': 15,
14 'maxPages': 10,
15 'selectedColumn': 'doc.name',
16 'defaultOrder': 'asc'
17 })
18 ## Add the filter by selected tags
19 #if($request.tag)
20 #set ($discard = $options.put('selectedTags',["${request.tag}"]))
21 #end
22 ##
23 #set ($columns = ['doc.name', '_attachments', '_actions'])
24 #livetable('filemanager' $columns $columnsProperties $options)
25 #end
26 {{/velocity}}