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 4.1
edited by Thomas Coelho (local)
on 2023/11/03 15:25
on 2023/11/03 15:25
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-icon-ui/15.9]
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (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.
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -19,7 +19,7 @@ 19 19 height: 80px; 20 20 width: 100px; 21 21 text-align: center; 22 - border-radius: 4px;22 + border-radius: 7px; 23 23 vertical-align: middle; 24 24 overflow: hidden; 25 25 padding: 10px;