Closed (won't fix)
Project:
Content Construction Kit (CCK)
Version:
6.x-2.1
Component:
text.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2008 at 21:50 UTC
Updated:
1 Aug 2009 at 11:49 UTC
Hi, this is a very simple question.
I can't seem to 'add another item' for select list fields; I am able to do that for File fields and other text fields, but I really need to offer unlimited one-item selections from my select list, and I don't mean to select more than one item in the list (Ctrl+click items), but to have the 'Add Another Item' button that would display another instance of the list.
Therefore, I would have, for example, body variables for those selections that'd look like this:
$node->field_selectlistAlex[0]['value']
$node->field_selectlistAlex[1]['value']
$node->field_selectlistAlex[2]['value']
.
.
.
Thank you all in advance,
Alex
Comments
Comment #1
yched commentedSounds reasonable. That would require making a new 'select' widget that would be forced non-multiple, and would defer to cck's default handling of multiple values (would be best as an option of the existing select widget, but unfortunately the current architecture only allows opting out of cck's multiple value handling on a 'always/never' basis)
Note that the $node structure you describe is already the one you get no matter what widget you use.
Comment #2
alextronic commentedyched, "a new 'select' widget that would be forced non-multiple, and would defer to cck's default handling of multiple values" is exactly what I need here. You understood my point, even with my bad english.
How can I achieve that 'select' widget? It sounds that it might not be possible. Please tell me so I change the strategy in my site. Will this be implemented soon? Sorry for the impatience.
Thanks for your answer.
Comment #3
markus_petrux commentedMaybe you could try with the multigroup module? You could have one multigroup with a multiple select widget that will be converted by the multigroup module into as many groups of single select elements as necessary. Well, it's just an idea.
http://drupal.org/node/119102
The latest patches are located in comment #245, but I posted a new version of the module not in patch form in comment #255.
Comment #4
alextronic commentedThis sounds GREAT, markus_petrux.
I'll sure give it a try... maybe it's even better than what I wanted to do.
Thank you.
Comment #5
alextronic commentedAnyway my request is still on... thank you all.
Comment #6
Michsk commentedneed this to, alextronic: did you get this working and if so could you tell me how?
Comment #7
markus_petrux commentedWell, the multigroup module could be an option, but there are already other contrib module that provide enhanced ways to perform multiple selection:
http://drupal.org/project/multiselect
http://drupal.org/project/betterselect
http://drupal.org/project/selector_element
More:
http://drupal.org/project/modules?text=multiselect
Comment #8
Michsk commentedpf i have searched for so long and could not find any module.. and eventualy used your module markus. the multigroup, works like a charm!! i only miss the five star rating option but now i use a select list and gone implement http://marghoobsuleman.com/mywork/jcomponents/customdropdown/dropDownCus... to make it look "smoother" and friendlier.
Thanks for the post i will look at the modules but i think ill stick to multigroup, any idea when it will be uploaded with the cck v3? i am using now your latest version
//edit seems the modules you placed don't do the trick, multigroup does EXACTLY what i needed.