Hi,
On my test site I have a new CCK content type. Let's call it "thing"
5 of these things belong to the taxonomy term "parent"
Of those 5, 2 of them belong to the sub-term "Child" :
So my hierarchy looks like:
Parent (5 things in total, 3 just belong to Parent)
-Child (2 things)
I tried to make a view (using the Views module) to display all 5 things.
I used the filter Taxonomy Term = Parent
But this only displays the 3 things that belong to the term Parent and not Child!
How can I make it so views will display Parent AND Child terms?
I search around a lot on the web- I enabled the Views Node view: taxonomy_term, and in that view, under Arguments --> Taxonomy: Term ID (with depth), I set the depth to 10 (the maximum setting).
But still I only see the Parent term, and no child terms that belong to that parent.
Any help would be greatly appreciated.
Comments
Hey there, using the parent
Hey there, using the parent filter will get you the nodes attached to the parent term.. this is the normal behaviour!!
If you want to see all nodes tagged with a term, just select Taxonomy term as an argument, and set the depth. If you use that argument, make sure you remove the "Parent" filter!
Patchak
does this explanation answer
does this explanation answer the question?
in the default view taxonomy_term, there is no such "parent" filter.
the question was about showing the children in addition to that term, even if they are not tagged with the parent term.
must be an easy thing, but the arguments settings are rather non-selfexplanatory.
the standart taxonomy_term view shows only nodes tagged with the parents. could someone please describe the steps to show nodes tagged with child terms as well?
Yes, it does answer
It's actually a very easy solution:
Add a filter. Under groups, choose "taxonomy" and then check "taxonomy term"
After clicking "add", you'll have a choice of using Autocomplete or Dropdown. Set it to Dropdown, then hit Update.
Now, using shift + click you can easily select several hierarchies at once.
My mistake before was that I kept it on Autocomplete, which is the default.
Hope that helps.
I'm looking for a solution to
I'm looking for a solution to the same issue -- but selecting the terms doesn't help if users add more terms later. I want it to be dynamic.
A Good Point
You raise a good point.
The solution I posted above is really just a "quick fix".
What I'm really looking for is to be able to set the Views Module filter to a single Taxonomy term that is a parent to several children, and have all it's children automatically show up WITH the parent in searches.
This would also work if a new child term were added to the parent term at a later date.
There must be a way to do this!
An illustration:
Select the parent term only, and have children 1-3 be included in in the Views filter.
-Parent
--Child1
--Child2
--Child3
At a later date, maybe your hierarchy looks like this:
-Parent
--Child1
---Grandchild1
---Grandchild2
--Child2
--Child3
---Grandchild3
----Great Grandchild1
But with the same Views filter set ONLY to the taxonomy term Parent, all children, grandchildren, and great grand children are still included in the view.
Yes, dynamic updating is what we need.
This could help me as well.
Subscribing, me too for
Subscribing, me too for dynamic updating solution, greetings, Martijn
+1
+1
+1
I want to allow the same thing! I thought this would be automatic. What am I missing!
Looks like this has been solved
See http://drupal.org/node/271833 - this functionality is in the 2.6 release of Views.