Download the PHP package pixelpoems/silverstripe-selection-field without Composer
On this page you can find all versions of the php package pixelpoems/silverstripe-selection-field. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pixelpoems/silverstripe-selection-field
More information about pixelpoems/silverstripe-selection-field
Files in pixelpoems/silverstripe-selection-field
Package silverstripe-selection-field
Short Description Silverstripe Module that provides a selection field for the CMS.
License BSD-3-Clause
Informations about the package silverstripe-selection-field
Silverstripe Selection Field
This module provides a selection field wich is based on color palate field by heyday.
- Requirements
- Installation
- Usage
- Reporting Issues
- Credits
Requirements
- Silverstripe CMS >=4.0
- Silverstripe Framework >=4.0
- Versioned Admin >=1.0
- Silverstripe Color Palette Field ^2.1
Installation
Usage
Based on: SilverStripe\Forms\OptionsetField
and Heyday\ColorPalette\Fields\ColorPaletteField
To display Icons you need to reference Font Awesome Icons (Free & Solid):
https://fontawesome.com
Use the name of the icon without the fa-
prefix. e.g. align-left
for fa-align-left
.
If no Icon is defined within the array, the box will display the title! You can define an alternative box content when you define "Content" within Options. Furthermore you can define an image link:
If you defined an icon and an image link, the image link will be ignored. Based on hierarchy the icon will be displayed first, then the image link and then the content - if nothing is defined, the title will be displayed.
If you use ImgLink, you can let the user upload the images to a predefined folder. You can use the Icon Selection Service
,
which comes with this module, to provide the images to the user. You can use the following code to provide the images:
Reporting Issues
Please create an issue for any bugs you've found, or features you're missing.
Credits
Icons from Font Awesome \ Selection Field is based on Heyday's Color Palette Field
All versions of silverstripe-selection-field with dependencies
silverstripe/cms Version >=4
silverstripe/framework Version >=4
silverstripe/vendor-plugin Version >=1
heyday/silverstripe-colorpalette Version ^2.1.0