Hi,
I am using content_taxonomy with Multiselect widget module. In field setting form i have selected the vocabulary and set the parent as "---" and choose depth as 1. Instead of showing the first level my field showing entire taxonomy tree with all levels.
I have check the module code and i think "content_taxonomy_allowed_values()" hook is not executing which is added to "taxonomy_term_reference" field setting.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | Screenshot.png | 63.28 KB | d2ev |
Comments
Comment #1
d2ev commentedComment #2
trigop commented+1 subscribe
Comment #2.0
d2ev commentedchanged
Comment #2.1
d2ev commentedchanged
Comment #3
Bronislovas commented+1 Subscribe. Not working for me either
Comment #4
nit3ch commentedworking fine on my setup , no issue at all. please make sure that you are entering correct values in "tree depth" and leave empty to load all terms .Or you need to explain more or attach a screenshot.
cheers.
Comment #5
Bronislovas commentedMaybe I do not understand correctly, but how to show only parent terms? For example you have
Category A
- Child 1
- Child 2
Category B
- Child 1
- Child 2
Will allow to select only Category A and Category B, without displaying childs. Or this module is not supposed to do that?
Thanks.
Comment #6
nit3ch commentedIf by category you mean vocabulary then , yes it is not possible to list the vocabulary . You choose vocabulary and the terms are listed on the basis of tree depth .And if you mean terms then setting tree depth to "one" will give your desired result.
Hope it helps.
Comment #7
d2ev commentedYes its now working fine in fresh D7 copy ... my working copy contain all these modules - multiselect, taxonomy_access, taxonomy_csv, taxonomy_dupecheck, taxonomy_manager and hierarchical_select. I am not sure which module is causing the problem.
i have gone through the modules and find the hook "content_taxonomy_allowed_values()" present in this module is not executing.
Comment #8
d2ev commentedComment #9
Bronislovas commentedYes I mean Term and Yes I was setting 1, but didn`t get result as expected. Maybe there is conflict with other modules. Thanks for your answer.
Comment #11
bdecarne commentedi18n_taxonomy change $field['settings']['options_list_callback'], so content_taxonomy_allowed_values is not called.
Comment #11.0
bdecarne commentedchange