This widget is used to select visualy from a list of icon with a popup and a search field. The icon list is base on Font Awesome 6.4.0
You can configure the icon list and default search result renderer (ResultRenderer, CategoryRenderer and CategoryLayoutRenderer) in config.settings.widget.icon_selector.iconList
and config.settings.widget.icon_selector.defaultRenderer
{
[category id] : {
'title': [category title]
'list': [
{'name' : [name of the icon]},
...
]
},
...
}
-
Make sure you have a Plone backend up-and-running at http://localhost:8080/Plone
-
Start Volto frontend
-
If you already have a volto project, just update
package.json
:"addons": [ "@affinitic/volto-icon-selector-widget" ], "dependencies": { "@affinitic/volto-icon-selector-widget": "^0.0.0" }
-
If not, create one:
npm install -g yo @plone/generator-volto yo @plone/volto my-volto-project --addon @affinitic/volto-icon-selector-widget cd my-volto-project
-
Install new add-ons and restart Volto:
yarn yarn start
-
Go to http://localhost:3000
-
Happy editing!