Changes for page CHOPlist
Last modified by Marco Weber on 2026/10/05 15:41
To version 28.1
edited by Marco Weber
on 2026/10/05 07:46
on 2026/10/05 07:46
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,25 +1,75 @@ 1 -{{velocity}} 2 -#set ($columnsProperties = { 3 - 'code': {}, 4 - 'text_de': {}, 5 - 'text_fr': {}, 6 - 'text_it': {}, 7 - 'valid_start': {"html":true}, 8 - 'valid_end': {"html":true}, 9 - 'chop_like': {}, 10 - 'treat_cat': {}, 11 - 'topo_group': {}, 12 - 'chcr_only': {} 13 -}) 14 -#set ($options = { 15 - 'className': 'CHOPlist.Code.CHOPlistClass', 16 - 'translationPrefix': 'choplist.livetable.', 17 - 'tagCloud': true, 18 - 'rowCount': 15, 19 - 'maxPages': 10, 20 - 'selectedColumn': 'code', 21 - 'defaultOrder': 'asc' 22 -}) 23 -#set ($columns = ['code', 'text_de', 'text_fr', 'text_it', 'valid_start', 'valid_end', 'chop_like', 'treat_cat', 'topo_group', 'chcr_only']) 24 -#livetable('choplist' $columns $columnsProperties $options) 25 -{{/velocity}} 1 +{{liveData 2 + id="choplist" 3 + properties="code,text_de,text_fr,text_it,valid_start,valid_end,chop_like,treat_cat,topography,chcr_only" 4 + source="liveTable" 5 + sourceParameters="className=CHOPlist.Code.CHOPlistClass&translationPrefix=choplist.livetable." 6 + sort="code:asc" 7 + limit="15" 8 + layouts="table" 9 + showPageSizeDropdown="true" 10 + pageSizes="15,25,50,100" 11 +}} 12 +{ 13 + "meta": { 14 + "propertyDescriptors": [ 15 + { 16 + "id": "code", 17 + "sortable": true, 18 + "filterable": true 19 + }, 20 + { 21 + "id": "text_de", 22 + "sortable": true, 23 + "filterable": true 24 + }, 25 + { 26 + "id": "text_fr", 27 + "sortable": true, 28 + "filterable": true 29 + }, 30 + { 31 + "id": "text_it", 32 + "sortable": true, 33 + "filterable": true 34 + }, 35 + { 36 + "id": "valid_start", 37 + "sortable": true, 38 + "filterable": true 39 + }, 40 + { 41 + "id": "valid_end", 42 + "sortable": true, 43 + "filterable": true 44 + }, 45 + { 46 + "id": "chop_like", 47 + "sortable": true, 48 + "filterable": true 49 + }, 50 + { 51 + "id": "treat_cat", 52 + "sortable": true, 53 + "filterable": true 54 + }, 55 + { 56 + "id": "topography", 57 + "sortable": true, 58 + "filterable": true 59 + }, 60 + { 61 + "id": "chcr_only", 62 + "sortable": true, 63 + "filterable": true 64 + } 65 + ], 66 + "pagination": { 67 + "maxShownPages": 10, 68 + "pageSizes": [15, 25, 50, 100], 69 + "showEntryRange": true, 70 + "showNextPrevious": true, 71 + "showFirstLast": true 72 + } 73 + } 74 +} 75 +{{/liveData}}