elbformat / icon-bundle
Ibexa fieldtype to select an icon from a predefined set.
Installs: 65
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Type:symfony-bundle
Requires
- php: ^8.1
- ezsystems/ezplatform-admin-ui: ^2.3
- ezsystems/ezplatform-core: ^2.3
- symfony/finder: ^5.4|^6.4
Requires (Dev)
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9.6
This package is auto-updated.
Last update: 2024-10-25 08:06:35 UTC
README
This bundle provides a new field type "icon". It allows an editor to select an icon from a predefined set of icons
Features
- Configure multiple icon-sets
- Select the icon-set at content-type edit level
- Select icon from a dropdown instead of text
Installation
- Add the bundle
composer require elbformat/icon-bundle
- Activate the bundle
Elbformat\IconBundle\ElbformatIconBundle::class => ['all' => true],
- Add iconset configuration
Add
config/packages/elbformat_icon.yaml
elbformat_icon: iconset1: - clock - house iconset2: folder: "vendor/ezsystems/ezplatform-admin-ui/src/bundle/Resources/public/img/icons"
See configuration for more advanced examples
Usage
Edit a content-type and add an "Icon" field. Select icon-set to use. When editing the content, a dropdown with icons will be shown.