Changes for page Data types
From version 1.1
edited by N Pompei
on 08/06/2020 17:31
on 08/06/2020 17:31
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-xclass-ui/12.4]
To version 4.1
edited by Nazzareno Pompei
on 19/01/2024 08:57
on 19/01/2024 08:57
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-xclass-ui/15.10.5]
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki.NPompei 1 +XWiki.NazzarenoPompei - Content
-
... ... @@ -15,7 +15,8 @@ 15 15 'editor': 'wiki', 16 16 'template': $request.template, 17 17 'parent': $request.parent, 18 - 'title': $classTitle 18 + 'title': $classTitle, 19 + 'form_token': $services.csrf.token 19 19 }))) 20 20 ## Stop processing, since we already sent a redirect. 21 21 #stop ... ... @@ -49,6 +49,7 @@ 49 49 #end 50 50 {{html}} 51 51 <form action="$doc.URL" method="post" class="xform half"> 53 + <fieldset> 52 52 <div class="hidden"> 53 53 <input type="hidden" name="parent" value="XWiki.XWikiClasses"/> 54 54 <input type="hidden" name="template" value="XWiki.ClassTemplate"/> ... ... @@ -85,6 +85,7 @@ 85 85 $services.localization.render('platform.xclass.classes.createClass.label'))"/> 86 86 </span> 87 87 </p> 90 + </fieldset> 88 88 </form> 89 89 {{/html}} 90 90 {{/velocity}} ... ... @@ -92,23 +92,27 @@ 92 92 (% id="HClassesLiveTable" %) 93 93 = {{translation key="platform.xclass.classes.livetable.heading"/}} = 94 94 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}} 98 +{{liveData 99 + id="classes" 100 + properties="doc.title,doc.location,doc.date,doc.author,pageCount,_actions" 101 + source="liveTable" 102 + sourceParameters="resultPage=XWiki.XWikiClassesLiveTableResults&translationPrefix=platform.xclass.classes.livetable.&queryFilters=" 103 + }} 104 +{ 105 + "meta": { 106 + "propertyDescriptors": [ 107 + { 108 + "id": "doc.title", 109 + "editable": false 110 + }, 111 + { 112 + "id": "pageCount", 113 + "editable": false, 114 + "filterable": false, 115 + "sortable": false, 116 + "displayer": "number" 117 + } 118 + ] 119 + } 120 +} 121 +{{/liveData}}