2017 © Pedro Peláez
 

silverstripe-vendormodule multiselectfield

A sortable multiple select field for managing many-to-many relations

image

kinglozzer/multiselectfield

A sortable multiple select field for managing many-to-many relations

  • Thursday, July 5, 2018
  • by kinglozzer
  • Repository
  • 1 Watchers
  • 9 Stars
  • 4,809 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 3 Open issues
  • 24 Versions
  • 16 % Grown

The README.md

MultiSelectField

Build Status, (*1)

A drag & drop sortable select field for managing many-to-many relations., (*2)

field, (*3)

Installation:

Composer:

$ composer require kinglozzer/multiselectfield:^2.0

Download:

Simply clone or download this repository and put it in a folder called 'multiselectfield' in your SilverStripe installation folder, then run dev/build., (*4)

Example:

The field currently only supports many-to-many relations. The constructor takes an optional argument for a field to sort on, which you need to define in your $many_many_extraFields., (*5)

The following is an example of how to use MultiSelectField in a simple many-to-many relationship with a "Sort" extra field:, (*6)

use Kinglozzer\MultiSelectField\Forms\MultiSelectField;

class Department extends DataObject
{
    private static $db = [
        'Name' => 'Varchar',
    ];

    private static $many_many = [
        'StaffMembers' => 'StaffMember',
    ];

    private static $many_many_extraFields = [
        'StaffMembers' => [
            'Sort' => 'Int',
        ]
    ];

    /**
     * @return FieldList
     */
    public function getCMSFields()
    {
        $fields = FieldList::create();

        $staffField = MultiSelectField::create('StaffMembers', 'Staff members', $this, 'Sort');
        $fields->addFieldToTab('Root.Main', $staffField);

        return $fields;
    }
}
class StaffMember extends DataObject
{
    private static $db = [
        'Name' => 'Varchar',
    ];

    private static $many_many = [
        'Departments' => 'Department',
    ];
}

The Versions

05/07 2018

dev-master

9999999-dev https://github.com/kinglozzer/silverstripe-multiselectfield

A sortable multiple select field for managing many-to-many relations

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

multiselect silverstripe field manymany manytomany multselectfield

05/07 2018

2.0.0

2.0.0.0 https://github.com/kinglozzer/silverstripe-multiselectfield

A sortable multiple select field for managing many-to-many relations

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

multiselect silverstripe field manymany manytomany multselectfield

16/03 2018

dev-travis

dev-travis https://github.com/kinglozzer/silverstripe-multiselectfield

A sortable multiple select field for managing many-to-many relations

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

multiselect silverstripe field manymany manytomany multselectfield

01/03 2018

1.5.x-dev

1.5.9999999.9999999-dev https://github.com/kinglozzer/silverstripe-multiselectfield

A sortable multiple select field for managing many-to-many relations

  Sources   Download

BSD-3-Clause

The Requires

 

multiselect silverstripe field manymany manytomany multselectfield

01/03 2018

1.5.0

1.5.0.0 https://github.com/kinglozzer/silverstripe-multiselectfield

A sortable multiple select field for managing many-to-many relations

  Sources   Download

BSD-3-Clause

The Requires

 

multiselect silverstripe field manymany manytomany multselectfield

23/11 2015

1.4.x-dev

1.4.9999999.9999999-dev https://github.com/kinglozzer/silverstripe-multiselectfield

A sortable multiple select field for managing many-to-many relations

  Sources   Download

BSD-3-Clause

The Requires

 

multiselect silverstripe field manymany manytomany multselectfield

23/11 2015

1.x-dev

1.9999999.9999999.9999999-dev https://github.com/kinglozzer/silverstripe-multiselectfield

A sortable multiple select field for managing many-to-many relations

  Sources   Download

BSD-3-Clause

The Requires

 

multiselect silverstripe field manymany manytomany multselectfield

23/11 2015

1.4.0

1.4.0.0 https://github.com/kinglozzer/silverstripe-multiselectfield

A sortable multiple select field for managing many-to-many relations

  Sources   Download

BSD-3-Clause

The Requires

 

multiselect silverstripe field manymany manytomany multselectfield

11/11 2015

1.3.x-dev

1.3.9999999.9999999-dev https://github.com/kinglozzer/silverstripe-multiselectfield

A sortable multiple select field for managing many-to-many relations

  Sources   Download

BSD-3-Clause

The Requires

 

multiselect silverstripe field manymany manytomany multselectfield

11/11 2015

1.3.1

1.3.1.0 https://github.com/kinglozzer/silverstripe-multiselectfield

A sortable multiple select field for managing many-to-many relations

  Sources   Download

BSD-3-Clause

The Requires

 

multiselect silverstripe field manymany manytomany multselectfield

11/11 2015

1.2.x-dev

1.2.9999999.9999999-dev https://github.com/kinglozzer/silverstripe-multiselectfield

A sortable multiple select field for managing many-to-many relations

  Sources   Download

BSD-3-Clause

The Requires

 

multiselect silverstripe field manymany manytomany multselectfield

11/11 2015

1.2.2

1.2.2.0 https://github.com/kinglozzer/silverstripe-multiselectfield

A sortable multiple select field for managing many-to-many relations

  Sources   Download

BSD-3-Clause

The Requires

 

multiselect silverstripe field manymany manytomany multselectfield

11/11 2015

1.3.0

1.3.0.0 https://github.com/kinglozzer/silverstripe-multiselectfield

A sortable multiple select field for managing many-to-many relations

  Sources   Download

BSD-3-Clause

The Requires

 

multiselect silverstripe field manymany manytomany multselectfield

13/04 2015

1.1.x-dev

1.1.9999999.9999999-dev https://github.com/kinglozzer/silverstripe-multiselectfield

A sortable multiple select field for managing many-to-many relations

  Sources   Download

BSD-3-Clause

The Requires

 

multiselect silverstripe field manymany manytomany multselectfield

13/04 2015

1.1.2

1.1.2.0 https://github.com/kinglozzer/silverstripe-multiselectfield

A sortable multiple select field for managing many-to-many relations

  Sources   Download

BSD-3-Clause

The Requires

 

multiselect silverstripe field manymany manytomany multselectfield

13/04 2015

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/kinglozzer/silverstripe-multiselectfield

A sortable multiple select field for managing many-to-many relations

  Sources   Download

BSD-3-Clause

The Requires

 

multiselect silverstripe field manymany manytomany multselectfield

13/04 2015

1.0.3

1.0.3.0 https://github.com/kinglozzer/silverstripe-multiselectfield

A sortable multiple select field for managing many-to-many relations

  Sources   Download

BSD-3-Clause

The Requires

 

multiselect silverstripe field manymany manytomany multselectfield

13/04 2015

1.2.1

1.2.1.0 https://github.com/kinglozzer/silverstripe-multiselectfield

A sortable multiple select field for managing many-to-many relations

  Sources   Download

BSD-3-Clause

The Requires

 

multiselect silverstripe field manymany manytomany multselectfield

09/01 2015

1.2.0

1.2.0.0 https://github.com/kinglozzer/silverstripe-multiselectfield

A sortable multiple select field for managing many-to-many relations

  Sources   Download

BSD-3-Clause

The Requires

 

multiselect silverstripe field manymany manytomany multselectfield

09/12 2014

1.1.1

1.1.1.0 https://github.com/kinglozzer/silverstripe-multiselectfield

A sortable multiple select field for managing many-to-many relations

  Sources   Download

BSD-3-Clause

The Requires

 

multiselect silverstripe field manymany manytomany multselectfield

09/12 2014

1.1.0

1.1.0.0 https://github.com/kinglozzer/silverstripe-multiselectfield

A sortable multiple select field for managing many-to-many relations

  Sources   Download

BSD-3-Clause

The Requires

 

multiselect silverstripe field manymany manytomany multselectfield

25/07 2014

1.0.2

1.0.2.0 https://github.com/kinglozzer/silverstripe-multiselectfield

A sortable multiple select field for managing many-to-many relations

  Sources   Download

BSD-3-Clause

The Requires

 

multiselect silverstripe field manymany manytomany multselectfield

25/07 2014

1.0.1

1.0.1.0 https://github.com/kinglozzer/silverstripe-multiselectfield

A sortable multiple select field for managing many-to-many relations

  Sources   Download

BSD-3-Clause

The Requires

 

multiselect silverstripe field manymany manytomany multselectfield

25/07 2014

1.0.0

1.0.0.0 https://github.com/kinglozzer/silverstripe-multiselectfield

A sortable multiple select field for managing many-to-many relations

  Sources   Download

BSD-3-Clause

The Requires

 

multiselect silverstripe field manymany manytomany multselectfield