Wiki source code of $services.localization.render('tour.app.name')
Version 1.1 by admin on 2022/05/03 16:38
Hide last authors
author | version | line-number | content |
---|---|---|---|
1.1 | 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}} |