fullscreeninteractive / silverstripe-dropdownimagefield
Dropdown field with image support for SilverStripe CMS
Installs: 1 610
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 7
Language:JavaScript
Type:silverstripe-vendormodule
Requires
- silverstripe/cms: ~3.1
- silverstripe/framework: ~3.1
This package is auto-updated.
Last update: 2025-08-28 01:36:27 UTC
README
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.
Requirements
SilverStripe 6
Install
composer require fullscreeninteractive/silverstripe-dropdownimagefield
Usage
Example:
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.