| ... |
... |
@@ -9,22 +9,25 @@ |
| 9 |
9 |
[[image:icon:wand]] $services.localization.render('xe.panels.customize') [[$services.localization.render('panelwizard.panelwizard')>>Panels.PanelWizard]]. |
| 10 |
10 |
{{/box}} |
| 11 |
11 |
#end |
| 12 |
|
-#set($columns = ["name", "description", "type", "category", '_actions']) |
| 13 |
|
-#set($columnsProperties = { |
| 14 |
|
- "name" : { "type" : "text", "link" : "view" }, |
| 15 |
|
- "description" : { "type" : "text", "html" : "true" }, |
| 16 |
|
- "type" : { "type" : "list" }, |
| 17 |
|
- "category" : { "type" : "list" }, |
| 18 |
|
- '_actions': {'html': true, 'sortable': false, 'actions': ['edit', 'delete']} |
|
12 |
+#set ($liveDataConfig = { |
|
13 |
+ 'meta': { |
|
14 |
+ 'propertyDescriptors': [ |
|
15 |
+ { 'id': 'name', 'displayer': 'link' } |
|
16 |
+ ] |
|
17 |
+ } |
| 19 |
19 |
}) |
| 20 |
|
-#set($options = { |
| 21 |
|
- "className":"Panels.PanelClass", |
| 22 |
|
- "selectedColumn":"name", |
| 23 |
|
- "defaultOrder":"asc", |
| 24 |
|
- "translationPrefix" : "panels.", |
| 25 |
|
- "rowCount": 30, |
| 26 |
|
- "queryFilters": "currentlanguage" |
| 27 |
|
-}) |
| 28 |
|
-#livetable("panels" $columns $columnsProperties $options) |
|
19 |
+#set ($sourceParameters = $escapetool.url({ |
|
20 |
+ 'className': 'Panels.PanelClass', |
|
21 |
+ 'translationPrefix' : 'panels.', |
|
22 |
+ 'queryFilters': 'currentlanguage' |
|
23 |
+})) |
|
24 |
+ |
|
25 |
+{{liveData |
|
26 |
+ id='panels' |
|
27 |
+ source='liveTable' |
|
28 |
+ sourceParameters="$sourceParameters" |
|
29 |
+ properties='name,description,type,category,_actions' |
|
30 |
+ limit=30 |
|
31 |
+}}$jsontool.serialize($liveDataConfig){{/liveData}} |
| 29 |
29 |
{{/velocity}} |
| 30 |
30 |
|