goldfinch / silverstripe-imageselection-field
Image selection field for Silverstripe.
Installs: 595
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
Type:silverstripe-vendormodule
Requires
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3
- phpunit/phpunit: ^9.5
README
- SS5 compatible fork of nswdpc/silverstripe-imageselection-field
This is a basic radio selection field, each item in the set of options can have an image associated with it.
Useful for allowing people to select an option based on an image.
Usage
$imageList = $app->getImageList();// DataList of Image records $sampleImageField = ImageSelectionField::create( 'SelectedImageID', _t( 'myapp.CHOOSE_AN_IMAGE', 'Choose an image' ) )->setDescription( _t( 'myapp.CHOOSE_AN_IMAGE_HELP', 'Choose an image that is most relevant.' ) )->setImageList($imageList);
Installation
composer require goldfinch/silverstripe-imageselection-field
License
Configuration
You can set the default image width/height in your project configuration
Maintainers
Bugtracker
We welcome bug reports, pull requests and feature requests on the Github Issue tracker for this project.
Please review the code of conduct prior to opening a new issue.
Security
If you have found a security issue with this module, please email digital[@]dpc.nsw.gov.au in the first instance, detailing your findings.
Development and contribution
If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.
Please review the code of conduct prior to completing a pull request.