Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elbformat/icon-bundle
Field type to select an icon from a predefined set
https://github.com/elbformat/icon-bundle
Last synced: about 1 month ago
JSON representation
Field type to select an icon from a predefined set
- Host: GitHub
- URL: https://github.com/elbformat/icon-bundle
- Owner: elbformat
- License: mit
- Created: 2023-12-14T09:53:50.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-25T07:44:46.000Z (5 months ago)
- Last Synced: 2024-11-10T02:13:58.657Z (about 2 months ago)
- Language: PHP
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ibexa Icon Fieldtype
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
1. Add the bundle
```shell
composer require elbformat/icon-bundle
```2. Activate the bundle
```php
Elbformat\IconBundle\ElbformatIconBundle::class => ['all' => true],
```3. Add iconset configuration
Add `config/packages/elbformat_icon.yaml`
```yaml
elbformat_icon:
iconset1:
- clock
- house
iconset2:
folder: "vendor/ezsystems/ezplatform-admin-ui/src/bundle/Resources/public/img/icons"
```
See [configuration](doc/configuration.md) 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.