Changes for page Icon Picker
Last modified by superadmin on 2025/05/07 14:14
From version 1.1
edited by Thomas Coelho (local)
on 2022/04/20 16:06
on 2022/04/20 16:06
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-icon-ui/14.2.1]
To version 3.1
edited by Thomas Coelho (local)
on 2023/09/25 10:21
on 2023/09/25 10:21
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-icon-ui/15.7]
Summary
-
Page properties (1 modified, 0 added, 0 removed)
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 - $jsontool.serialize($map)13 + #jsonResponse($map) 14 14 ########################### 15 15 ## DATA: ICONS 16 16 ########################### ... ... @@ -21,9 +21,10 @@ 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))) 24 24 #set($discard = $icons.add($icon)) 25 25 #end 26 - $jsontool.serialize($icons)27 + #jsonResponse($icons) 27 27 #else 28 28 = Presentation = 29 29 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.