Jump to:

10993 Posts in 2727 Topics by 1818 members

All other Modules

SilverStripe Forums » All other Modules » MultiSelectField Fix

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3 4
Go to End
Author Topic: 5516 Views
  • swaiba
    Avatar
    Forum Moderator
    1792 Posts

    Re: MultiSelectField Fix Link to this post

    For anyone reading this - https://github.com/ajshort/silverstripe-itemsetfield is a great alternative

  • lx
    Avatar
    Community Member
    82 Posts

    Re: MultiSelectField Fix Link to this post

    hi jam13,

    in addition to validation handling we added some other features to the module yesterday.

    1) counting the items in both columns and show the number under each column
    2) checkbox "Select All" on both sides
    3) search filter above the columns that filters both cloumns while typing

    We didnt test them very extensive but at a first look they seem to work fine.

    If you like i can give you the code so that you can integrate it into your next release.

    Regards
    lx

  • Graphicator
    Avatar
    Community Member
    62 Posts

    Re: MultiSelectField Fix Link to this post

    Itemsetfield quickly got the job done. Thank you ajshort.

    My question is if there is any way to change $default_options per page type. I haven't looked into changing ItemSetFields default options.

    I'd like to make this Sortable, and Turn off the Picked items in the search.

  • Graphicator
    Avatar
    Community Member
    62 Posts

    Re: MultiSelectField Fix Link to this post

    For example, The new config accepts options in the 4th argument as an array

          $fields->addFieldToTab('Root.Content.Testimonials', new HasManyPickerField(
             $this,
             'Testimonials',
             'Pick a Testimonial',
             array(
                'Sortable' => true,
                'ShowPickedInSearch' => false
             )));

    5516 Views
Page: 1 2 3 4
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.