Changes for page Panels

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

From 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]
To 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]

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.coelho
1 +XWiki.thw
Content
... ... @@ -41,10 +41,7 @@
41 41  
42 42  {{velocity output="false"}}
43 43  #macro (displayConfigPropertyValue $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
44 + #unwrapXPropertyDisplay($doc.display($propName, $action))
48 48  #end
49 49  
50 50  #macro (displayPageLayoutSection)
... ... @@ -250,7 +250,7 @@
250 250   (((
251 251   (% class="label" %)((($doc.display('name', $obj))))
252 252   (% 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)))
253 - (% class="xwikibuttonlink" %)((([[$services.localization.render('edit')>>path:$xwiki.getURL($item, 'inline')]] [[$services.localization.render('delete')>>path:$xwiki.getURL($item, 'delete')]])))
250 + (% class="xwikibuttonlink" %)((([[$services.localization.render('edit')>>path:$xwiki.getURL($item, 'edit')]] [[$services.localization.render('delete')>>path:$xwiki.getURL($item, 'delete')]])))
254 254   )))
255 255   #set ($panelCount = $panelCount + 1)
256 256   #end## foreach panel