Wiki source code of Tour

Last modified by Admin Polx on 2019/09/06 16:25

Show last authors
1 {{velocity}}
2 #set ($columnsProperties = {
3 'doc.title': {"type": "text", "size":10,"link":"view"},
4 'isActive': {"type": "text", "size":10, "sortable":true, "filterable": false},
5 'targetPage': {"type":"text","size":10},
6 'targetClass': {"type":"text","size":10},
7 '_actions': {"sortable":false,"filterable":false,"html":true,"actions":["edit","delete"]}
8 })
9 #set ($options = {
10 'className': 'TourCode.TourClass',
11 'resultPage': 'TourCode.TourLiveTableResults',
12 'translationPrefix': 'tour.livetable.',
13 'tagCloud': true,
14 'rowCount': 15,
15 'maxPages': 10,
16 'selectedColumn': 'doc.title',
17 'defaultOrder': 'asc',
18 'queryFilters': 'currentlanguage'
19 })
20 #set ($columns = ['doc.title', 'isActive', 'targetPage'])
21 #if ($isAdvancedUser)
22 #set ($discard = $columns.add('targetClass'))
23 #end
24 #set ($discard = $columns.add('_actions'))
25 #livetable('tour' $columns $columnsProperties $options)
26 {{/velocity}}