No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_config Update composer path Feb 4, 2019
css initial code Jul 15, 2015
docs/img added license, readme Jul 15, 2015
javascript ss4upgrade: Added js fix to check for $this Dec 20, 2018
src Update copyright, namespace Jan 15, 2019
templates/FullscreenInteractive/DropdownImageField Update copyright, namespace Jan 15, 2019
.editorconfig Added standard .editorconfig file Dec 31, 2015
.gitattributes Added standard .gitattributes file Jan 16, 2016
.scrutinizer.yml Added standard Scrutinizer config Feb 16, 2016
LICENSE Update copyright, namespace Jan 15, 2019
README.md Update copyright, namespace Jan 15, 2019
_config.php updated doc Jul 21, 2015
composer.json

README.md

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.

Working screenshot

Requirements

SilverStripe 4.0+

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. A polyfill is loaded to support IE9 and lower.