Download the PHP package goldfinch/icon-field without Composer
On this page you can find all versions of the php package goldfinch/icon-field. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download goldfinch/icon-field
More information about goldfinch/icon-field
Files in goldfinch/icon-field
Package icon-field
Short Description Advanced Icon Field for Silverstripe
License MIT
Informations about the package icon-field
🦅 Icon Field for Silverstripe
Advanced Icon Field for Silverstripe. It can handle up to 4 different types of icon sources:
- font icons (css file)
- directory (icons within specific folder)
- upload folder (folder through SilverStripe assets module)
- json (source file)
Install
Available Taz commands
If you haven't used Taz🌪️ before, taz file must be presented in your root project folder cp vendor/goldfinch/taz/taz taz
Add new icon set
Publish icon templates
Quick Bootstrap icon set setup
-
Copy json set of all current bootstrap icons
-
Add config for this set
- Use field with this set
Usage
Vite support
If you use Vite as a front-end build tool, you might want to include a dynamic vite link as a source for your icons. Easy, just use prefix vite:
followed by relative path to the file of your build, as you have it in your vite.config.js
.
example:
Previews
Icon (unloaded sets)
Icon (loaded sets)
Demo output (all types)
Sidenotes
-
If your set contains icons as PNG files, make sure to set property
vector: false
in your set configuration - When using
dir
set type, direct folder for icons in public (eg:public/my-icons
) might have access issues due to rules in.htaccess
. If that's your case, just move your dir with icons toassets
dir, (eg:public/assets/my-icons
) and updatesource
parameter in config file.
License
The MIT License (MIT)
All versions of icon-field with dependencies
silverstripe/framework Version ^5.0
silverstripe/admin Version ^2.0
goldfinch/taz Version ^2.0
goldfinch/silverstripe-jsontext Version ^2.1