Editor field select multiple entries?
Editor field select multiple entries?
Hopefully the title says it all. I would like to be able to select more than 1 item from the "select" drop down box when creating a new row with the Editor plugin. I can't see a setting for this, is it possible to have this feature in a future release?
This discussion has been closed.
Replies
> I would like to be able to select more than 1 item from the "select" drop down box when creating a new row with the Editor plugin
Do you mean by this you want a select box that allows multiple entries to be selected from (... for example)? Certainly at the moment the built in select control is size="1" so it is only possible to pick one entry - however, this might be an ideal case for using a field type plug-in ( http://editor.datatables.net/tutorials/field_types ). Having said that, this certainly something that I can add to the roadmap for future releases.
What format would you select to receive the selected data in at the server? Perhaps pipe separated, or comma separated? Or something else entirely?
Regards,
Allan
Yes that's the idea.
I'm a bit of a newbie to web developing as well as js but may well have a go at a field_type plugin.
[quote]allan said: What format would you select to receive the selected data in at the server? Perhaps pipe separated, or comma separated? Or something else entirely?[/quote]
Again being a newbie I don't have much of an opinion either way, I would only say that the list in question is to enter one or more entries in a "set" on a mysql db.
1. A character (pipe, comma - whatever) separated list.
2. An array of individual values
The proper with the character separated option is that you might want to use that separation character in a value! Having said that, I suspect that ultimately it will be easier to implement (possibly...!). When I did write that control for Editor originally I had thought of doing it with arrays, but I limited it to just a string value since I was using size=1 only.
Do let me know how you get on with this - I'll post here with any updates from my end as well :-)
Regards,
Allan