Toggle navigation
Log-in
Սկիզբ
Page Index
User Index
Application Index
Global
Languages
Default Language
Wiki Index
Tour
Wiki source code of
Tour
Last modified by superadmin on 2017/01/09 13:03
Hide line numbers
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}}