Changes for page Panels

Last modified by Thomas Coelho (local) on 2024/02/05 13:37

From version 3.1
edited by Thomas Coelho
on 2023/02/27 12:05
Change comment: Install extension [org.xwiki.platform:xwiki-platform-panels-ui/15.1]
To version 1.1
edited by Thomas Coelho (local)
on 2022/04/20 16:06
Change comment: Install extension [org.xwiki.platform:xwiki-platform-panels-ui/14.2.1]

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.thw
1 +XWiki.coelho
Content
... ... @@ -41,7 +41,10 @@
41 41  
42 42  {{velocity output="false"}}
43 43  #macro (displayConfigPropertyValue $propName $action)
44 - #unwrapXPropertyDisplay($doc.display($propName, $action))
44 + #set ($output = $doc.display($propName, $action))
45 + #set ($output = $stringtool.removeStart($output, '{{html clean="false" wiki="false"}}'))
46 + #set ($output = $stringtool.removeEnd($output, '{{/html}}'))
47 + $output
45 45  #end
46 46  
47 47  #macro (displayPageLayoutSection)
... ... @@ -247,7 +247,7 @@
247 247   (((
248 248   (% class="label" %)((($doc.display('name', $obj))))
249 249   (% id="panelContainer${panelCount}" class="panelcontainer" title="${doc.display('description', 'view', $obj, 'xwiki/2.0').replaceAll('^\{\{html(.*?)\}\}', '').replaceAll('\{\{/html\}\}$', '')}" %)(((#if($panelsStatus.get($item) == 'false')#displaypanel($item)#else(% class="panel" %)((()))#end)))
250 - (% class="xwikibuttonlink" %)((([[$services.localization.render('edit')>>path:$xwiki.getURL($item, 'edit')]] [[$services.localization.render('delete')>>path:$xwiki.getURL($item, 'delete')]])))
253 + (% class="xwikibuttonlink" %)((([[$services.localization.render('edit')>>path:$xwiki.getURL($item, 'inline')]] [[$services.localization.render('delete')>>path:$xwiki.getURL($item, 'delete')]])))
251 251   )))
252 252   #set ($panelCount = $panelCount + 1)
253 253   #end## foreach panel