Modifiche per il documento Data types
Dalla versione 2.1
modificato da Nazzareno Pompei
il 22/12/2021 08:46
il 22/12/2021 08:46
Cambia il commento:
Install extension [org.xwiki.platform:xwiki-platform-xclass-ui/13.10.1]
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Autore del documento
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki.N azzarenoPompei1 +XWiki.NPompei - Content
-
... ... @@ -92,27 +92,23 @@ 92 92 (% id="HClassesLiveTable" %) 93 93 = {{translation key="platform.xclass.classes.livetable.heading"/}} = 94 94 95 -{{liveData 96 - id="classes" 97 - properties="doc.title,doc.location,doc.date,doc.author,pageCount,_actions" 98 - source="liveTable" 99 - sourceParameters="resultPage=XWiki.XWikiClassesLiveTableResults&translationPrefix=platform.xclass.classes.livetable.&queryFilters=" 100 - }} 101 -{ 102 - "meta": { 103 - "propertyDescriptors": [ 104 - { 105 - "id": "doc.title", 106 - "editable": false 107 - }, 108 - { 109 - "id": "pageCount", 110 - "editable": false, 111 - "filterable": false, 112 - "sortable": false, 113 - "displayer": "number" 114 - } 115 - ] 116 - } 117 -} 118 -{{/liveData}} 95 +{{velocity}} 96 +{{html}} 97 +#set ($columns = ['doc.title', 'doc.location', 'doc.date', 'doc.author', 'pageCount', '_actions']) 98 +#set ($columnsProperties = { 99 + 'doc.title': {'link': 'view'}, 100 + 'doc.location': {'html': true}, 101 + 'doc.author': {'link': 'author'}, 102 + 'pageCount': {'type': 'numeric', 'filterable': false, 'sortable': false}, 103 + '_actions': {'sortable': false, 'filterable': false, 'html': true, 'actions': ['edit', 'delete']} 104 +}) 105 +#set ($options = { 106 + 'resultPage': 'XWiki.XWikiClassesLiveTableResults', 107 + 'translationPrefix' : 'platform.xclass.classes.livetable.', 108 + 'rowCount': 10, 109 + 'outputOnlyHtml': true, 110 + 'queryFilters': [] 111 +}) 112 +#livetable("classes" $columns $columnsProperties $options) 113 +{{/html}} 114 +{{/velocity}}