Hi,

I am using Content Taxonomy Fields. Users can check any number of check boxes with taxonomy terms that apply. However, I want to force the users to select only the child items (make all parent items unselectable), just like how it is set up for Drupal.org site's forum. Can someone please let me know how this can be done? I tried looking for the solution myself with not much luck..

Thanks.

BB

CommentFileSizeAuthor
#9 content_taxonomy_autocomplete-1.patch1.63 KBskilip

Comments

blueblade’s picture

anyone?

cygii’s picture

Priority: Normal » Critical

I have the same problem. Hard to find anything about this. Unbelievable !!!! I've no idea how to make hierarchy like :
-Voculabury -------- (CCK Taxonomy Fields -- Select List)
-- Term 1 (users cannot select in CCK form)
----Term 1A (-||- can select)
----Term 1B (-||- can select)
-- Term 2 (users cannot select in CCK form)
----Term 2A (-||- can select)
----Term 2B (-||- can select)

Anyone help ?

zeezhao’s picture

If you use http://drupal.org/project/hierarchical_select it has an option to force users to select at the deepest level.

See my post here: http://drupal.org/node/794696#comment-2997214

cygii’s picture

Fine, but if I want back from Term1A(sub) or Term1B(sub) to Term1(category) I don't see anything inside, none of subcategory there. Option of Content Taxonomy Field "Save values additionally to the core taxonomy database table" - checked!

karens’s picture

Project: Content Construction Kit (CCK) » Content Taxonomy
Version: 6.x-3.x-dev » 6.x-1.x-dev
Component: General » Code

That's a question for Content Taxonomy, not CCK.

magnus’s picture

Category: task » support
Priority: Critical » Normal
zeezhao’s picture

Please is there now an alternative way of doing this in CT as opposed to using hierarchical_select? This is still required as hierarchical_select cannot be put into a multigroup. Thanks.

clashar’s picture

subscribe,
I have the same problem to not use HS because of it's incompatibility with Multigroup.
And I need to chose only child terms. Or maybe at least to show only child terms.

skilip’s picture

Component: Code » Autocomplete - Freetagging
Status: Active » Needs review
StatusFileSize
new1.63 KB

For the Autocomplete widget I've created a patch. The form element in the widget settings form will probably need some more love.

clashar’s picture

skilip,
thanks for the patch, it worked well for me.

chuckbar77’s picture

subscribing

adelka’s picture

Is there a patch for 7.x-1.0-beta1 also?

zeezhao’s picture

Please did anyone solve this for D6 i.e. force child item in "Select List" (not autocomplete)

ruhaim’s picture

Though this is somewhat an old request, I still see this valid
I managed to get this through Term reference View after installing the 'views_term_hierarchy_weight_field' https://www.drupal.org/project/views_term_hierarchy_weight_field