I started to develop my first website with drupal. So far so good, I like this system, but I have one problem: When creating new node, I want to assign all child terms if I select parent term.
Let's say, I have a vocabulary "Plants". In this vocabulary, there are terms with this kind of hierarchy:
Fruits --- Apples ------- Green ------- Red --- Pears ------- Green ------- Red Berries --- Wild berries ------- Red ------- Blue
Now, when I create a node, I'm using Simple hierarchical select to select terms of this vocabulary. I'm using Views to display nodes. Let's say I want to assign term "Apples" to a node. When I go to view the page and use Filter Criteria Content: Has taxonomy terms (with depth) (exposed) and choose "Apples", I can see my node.
That's OK. But I want my node to appear if I select Green or Red (under term Apples in terms tree). In other words, if I assign term "Apples" in node creation page, I want it to assign all of its child terms also to this node. I.e., if I assign Wild berries, I want terms Red and Blue (childs of Wild berries) to be assigned also. Because right now, by assigning term "Apples" and then filtering by "Apples" gives what I want, but if I filter by Fruits->Apples->Green, I get no results.