Changes for page Icon Picker

Last modified by superadmin on 2025/05/07 14:14

From version 3.1
edited by Thomas Coelho (local)
on 2023/09/25 10:21
Change comment: Install extension [org.xwiki.platform:xwiki-platform-icon-ui/15.7]
To version 1.1
edited by Thomas Coelho (local)
on 2022/04/20 16:06
Change comment: Install extension [org.xwiki.platform:xwiki-platform-icon-ui/14.2.1]

Summary

Details

Page properties
Content
... ... @@ -10,7 +10,7 @@
10 10   #set($map = {})
11 11   #set($discard = $map.put('iconThemes', $services.icon.iconSetNames))
12 12   #set($discard = $map.put('currentIconTheme', $services.icon.currentIconSetName))
13 - #jsonResponse($map)
13 + $jsontool.serialize($map)
14 14  ###########################
15 15  ## DATA: ICONS
16 16  ###########################
... ... @@ -21,10 +21,9 @@
21 21   #set($icon = {})
22 22   #set($discard = $icon.put('name', $xwikiIcon))
23 23   #set($discard = $icon.put('render', $services.icon.renderHTML($xwikiIcon, $iconTheme)))
24 - #set($discard = $icon.put('metadata', $services.icon.getMetaData($xwikiIcon, $iconTheme)))
25 25   #set($discard = $icons.add($icon))
26 26   #end
27 - #jsonResponse($icons)
26 + $jsontool.serialize($icons)
28 28  #else
29 29  = Presentation =
30 30  The Icon Picker is a jQuery plugin written by XWiki to help user selecting an icon. See [[IconPickerMacro]] for using this picker easily. If you want to use it manually, read the following.