2017 © Pedro Peláez
 

silverstripe-module silverstripe-listbuilderfield

Provides 'list builder' or 'dual lists' ux pattern as a form field for Silverstripe CMS.

image

markguinn/silverstripe-listbuilderfield

Provides 'list builder' or 'dual lists' ux pattern as a form field for Silverstripe CMS.

  • Thursday, February 18, 2016
  • by markguinn
  • Repository
  • 1 Watchers
  • 2 Stars
  • 31 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

ListBuilderField Module

Two lists of items - a "master" list and a "selected" list. You can move items between the lists and sort them. In SS this field is interchangable with CheckboxSetField except for adding the sort field., (*1)

Usage:

Same as CheckboxSetField, except that you can specify the column used for sorting on the many-many relation the field is saved into. It can also save a comma-delimited list of id's into a text field instead if needed, in which case the sort column is irrelevant., (*2)

$fields->push(new ListBuilderField('Slides', 'Slides', Slides()::get()->Map(), 'SortOrder'));

TODO:

  • Add buttons in the middle to move one/all both ways
  • Add selection so you can move more than one

Author:

Mark Guinn mark@adaircreative.com, (*3)

Pull requests welcome! Just stick to the SS coding guidelines., (*4)

Licence:

MIT (see LICENSE for text), (*5)

The Versions

18/02 2016

dev-master

9999999-dev

Provides 'list builder' or 'dual lists' ux pattern as a form field for Silverstripe CMS.

  Sources   Download

MIT

The Requires

 

silverstripe forms listbuilder dual lists