2017 © Pedro Peláez
 

silverstripe-module silverstripe-flexichoice

SilverStripe field for providing arbitrary text input or selecting from YAML configurable presets.

image

briceburg/silverstripe-flexichoice

SilverStripe field for providing arbitrary text input or selecting from YAML configurable presets.

  • Wednesday, January 28, 2015
  • by briceburg
  • Repository
  • 1 Watchers
  • 4 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 1 Forks
  • 3 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

silverstripe-flexichoice

SilverStripe field for providing arbitrary text input or selecting from YAML configurable presets., (*1)

Requirements

SilverStripe 3+, (*2)

Screenshots

flexichoice field, (*3)

(the 'Link Text' field demonstrates a FlexiChoiceField, the 'Link' field is a silverstripe-flexilink field), (*4)

Usage

  • Add FlexiChoice field types to your DataObject(s)
class BlockContentHeading extends DataObject {
  private static $db = array(
    'Title'     => 'Varchar',
    'Content'   => 'Text',
    'Link'      => 'FlexiLink',
    'LinkText'  => 'FlexiChoice', // <--- here
  );

Trigger the environment builder (/dev/build) after extending objects -- You will now see the FlexiChoiceField appear in the CMS when editing your object., (*5)

FlexiChoiceField:
  choices:
    - LEARN MORE
    - READ MORE
    - MORE
    - GET STARTED

You may of course subclass FlexiChoiceField to provide multiple fields with different choice selections., (*6)

The Versions

28/01 2015

dev-master

9999999-dev https://github.com/briceburg/silverstripe-flexichoice

SilverStripe field for providing arbitrary text input or selecting from YAML configurable presets.

  Sources   Download

BSD-3-Clause

The Requires

 

by Brice Burgess

cms select dropdown silverstripe field input choice choices presets

28/01 2015

0.1.0

0.1.0.0 https://github.com/briceburg/silverstripe-flexichoice

SilverStripe field for providing arbitrary text input or selecting from YAML configurable presets.

  Sources   Download

BSD-3-Clause

The Requires

 

by Brice Burgess

cms select dropdown silverstripe field input choice choices presets