Changes for page CHOPlist

Last modified by Marco Weber on 2026/10/05 15:41

From version 24.1
edited by Marco Weber
on 2026/10/01 14:57
Change comment: There is no comment for this version
To version 8.1
edited by Marco Weber
on 2026/09/29 15:55
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -152,15 +152,42 @@
152 152  </style>
153 153  {{/html}}
154 154  
155 +{{velocity}}
156 +#set ($columnsProperties = {
157 + 'code': {},
158 + 'text_de': {},
159 + 'text_fr': {},
160 + 'text_it': {},
161 + 'valid_start': {"html":true},
162 + 'valid_end': {"html":true},
163 + 'chop_like': {},
164 + 'treat_cat': {},
165 + 'topography': {},
166 + 'chcr_only': {}
167 +})
155 155  
169 +#set ($options = {
170 + 'className': 'CHOPlist.Code.CHOPlistClass',
171 + 'translationPrefix': 'choplist.livetable.',
172 + 'tagCloud': true,
173 + 'rowCount': 30,
174 + 'maxPages': 10,
175 + 'selectedColumn': 'code',
176 + 'defaultOrder': 'asc'
177 +})
156 156  
157 -{{velocity}}
158 -{{liveData
159 - id="choplist"
160 - properties="code,text_de,text_fr,text_it,valid_start,valid_end,chop_like,treat_cat,topo_group,chcr_only"
161 - source="liveTable"
162 - sourceParameters="className=CHOPlist.Code.CHOPlistClass&translationPrefix=choplist.livetable."
163 - sort="code:asc"
164 - limit="30"
165 -/}}
179 +#set ($columns = [
180 + 'code',
181 + 'text_de',
182 + 'text_fr',
183 + 'text_it',
184 + 'valid_start',
185 + 'valid_end',
186 + 'chop_like',
187 + 'treat_cat',
188 + 'topo_group',
189 + 'chcr_only'
190 +])
191 +
192 +#livetable('choplist' $columns $columnsProperties $options)
166 166  {{/velocity}}
AppWithinMinutes.LiveTableClass[0]
Live Table Columns
... ... @@ -1,1 +1,1 @@
1 -code text_de text_fr text_it valid_start valid_end chop_like treat_cat topo_group chcr_only
1 +code text_de text_fr text_it valid_start valid_end chop_like treat_cat topo_group ChCr_only