Active
Project:
CCK Taxonomy Fields
Version:
5.x-1.2
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Dec 2007 at 19:22 UTC
Updated:
2 Jul 2010 at 10:41 UTC
Can someone explain to a newbie what the OptGroups option is all about? (It's visible when you are configuring a CCK Taxonomy field. I can't find documentation on that anywhere.
Thanks,
Mike
Comments
Comment #1
jeff h commentedCheck this out: http://www.w3schools.com/tags/tag_optgroup.asp
However, I still have no clue how this works in CCK Taxonomy Fields...
Comment #2
socialnicheguru commentedi have been searching for a definition and use case myself
Chris
Comment #3
janusman commentedA use case would be to forbid users to select, say, the first level of a hierarchic taxonomy... for example in "Fruit > Apples" and "Fruit > Oranges" they could select the type of fruit but not "Fruit" itself.
In fact I need to do this right now for a project =) Will get back to you when I do it =)
Comment #4
blue92877 commentedI have been looking for weeks on how to implement 'optgroups' in a CCK select field. Did you do it? can you elaborate how you did it? where are the options?
Thanks,
blue
Comment #5
janusman commentedI went with Hierarchical Select module.
Comment #6
codrakon commentedhow do i remove the opt groups from the rendered code:
this is my php:
$form['medicalaid'] = array(
'#type' => 'select',
'#title' => t('Medical Aid'),
'#options' => $medicalaidarr ,
'#attributes' => array('onchange' => 'getoptions(this)')
);
this is my rendered html:
i SERIOUSLY dont want the optgroup elements there.
please can someone tell me how to turn off the optgroup options on '#type' => 'select' form items