Changes for page Panels

Last modified by Mark Kohlmann on 2025/01/19 06:46

From version 1.1
edited by Mark Kohlmann
on 2020/04/02 23:25
Change comment: Install extension [org.xwiki.platform:xwiki-platform-panels-ui-9.4]
To version 2.1
edited by Mark Kohlmann
on 2024/07/26 08:05
Change comment: Install extension [org.xwiki.platform:xwiki-platform-panels-ui/16.5.0]

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.MarkKohlmann
1 +XWiki.mark\.kohlmann@chiefintegrations\.com
Content
... ... @@ -6,25 +6,28 @@
6 6  = $services.localization.render('panels.available') =
7 7  #if ($hasAdmin)
8 8   {{box}}
9 - [[image:icon:wand]] $services.localization.render('xe.panels.customize') [[$services.localization.render('panelwizard.panelwizard')>>Panels.PanelWizard]].
9 + [[image:icon:wand]] $services.localization.render('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