silverstripe-module dropdownimagefield
Dropdown field with image support for SilverStripe CMS
copperis/dropdownimagefield
Dropdown field with image support for SilverStripe CMS
- Sunday, October 16, 2016
- by Copperis
- Repository
- 2 Watchers
- 2 Stars
- 539 Installations
- JavaScript
- 0 Dependents
- 0 Suggesters
- 5 Forks
- 0 Open issues
- 2 Versions
- 5 % Grown
DropdownImageField
Adds a DropdownImageField
field which enables you to display images alongside the captions.
Uses a plugin for Chosen.js (which is used by SS), Image-Select. The plugin is modified., (*1)
, (*2)
Requirements
SilverStripe 4.0+, (*3)
Usage
Example:, (*4)
DropdownImageField::create('LanguageID', 'Select language',
LanguageObj::get(), // Source for items.
'ID', // Key field on item.
'Title', // Caption field on item.
'Icon' // Image field on item. Can be a method/relation that returns an image.
)
Notes
This plugin uses a setTimeout
function with additional parameters. A polyfill is loaded to support IE9 and lower., (*5)
dev-master
9999999-dev
Dropdown field with image support for SilverStripe CMS
Sources
Download
MIT
The Requires
dropdown
image
silverstripe
field
1.0.0
1.0.0.0
Dropdown field with image support for SilverStripe CMS
Sources
Download
MIT
The Requires
dropdown
image
silverstripe
field