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.

CommentFileSizeAuthor
#7 Screenshot.png63.28 KBd2ev

Comments

d2ev’s picture

Title: depth for taxonomy tree working » depth for taxonomy tree not working
trigop’s picture

+1 subscribe

d2ev’s picture

Issue summary: View changes

changed

d2ev’s picture

Issue summary: View changes

changed

Bronislovas’s picture

+1 Subscribe. Not working for me either

nit3ch’s picture

working 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.

Bronislovas’s picture

Maybe 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.

nit3ch’s picture

If 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.

d2ev’s picture

StatusFileSize
new63.28 KB

Yes 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.

d2ev’s picture

Status: Active » Fixed
Bronislovas’s picture

Yes 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

bdecarne’s picture

i18n_taxonomy change $field['settings']['options_list_callback'], so content_taxonomy_allowed_values is not called.

bdecarne’s picture

Issue summary: View changes

change