How do I return a list of child terms for a particular term?
I add a term view, added a term argument. But how do I limit it to display only child terms of that particular term, I don't see anything of the sort in filters. Thanks.
How do I return a list of child terms for a particular term?
I add a term view, added a term argument. But how do I limit it to display only child terms of that particular term, I don't see anything of the sort in filters. Thanks.
Comments
Comment #1
merlinofchaos commentedI believe you need to add a term parent relationship, so that you can set the argument to one side of the relationship and display the other.
Comment #3
summit commentedHi, I have the same question for 2.6. I want the view to only show node-info only about the child terms, not about the term itself.
I build a node-view with argument Taxonomie: Term ID (with depth) and in this Argument type: Term name/synonym converted to TID. It is working to show the subterm with depth 1, but it is still also showing information of the term itself.
How can I remove info about the term with using the arguments?
Thanks a lot for your reply in advance!
Greetings, Martijn
Comment #4
summit commentedHi Earl, set it to active again, sorry if that is not ok.
I set the parent relation to required. It is working for the topterm, then that term is not shown in the list, but it is NOT working for terms below the topterms.
For instance I have
I am able to make a view-display from www.blabla.com/view_name/Nepal which shows only the child terms of Nepal (using depth = 3)
So I got the fields I want from:
- Bagmati Zone and
- Latipur District
But using the same view-display from www.blabla.com/view_name/Bagmati Zone (using depth = 3) gives me the info about:
- Latipur District AND
- Bagmati Zone <==== This is not what I want.
Do you want an export of the view?
Thanks for still going into this. Greetings, Martijn
Comment #5
summit commentedMay be related to http://drupal.org/node/430462
greetings, Martijn
Comment #6
Akela commentedDirectory module (http://drupal.org/project/directory) can do this.
Comment #7
Flying Drupalist commentedThe point is to do it with views.
Comment #8
dawehnerDoes
What you want?
Comment #9
summit commentedHi,
Yes this is close, thank you! Will investigate further. Happy year ending to you!
Greetings, Martijn
Comment #10
dawehnerSo tis is fixed
Comment #11
summit commentedYep I succeeded with a variant of this view! Thanks for sharing! Greetings, Martijn
Comment #13
Flying Drupalist commentedSorry for the late reply, but thanks a lot dereine.
Comment #14
pacome commentedOla all,
sorry for re-oppening this thread, but I can't succeed to get the list of children terms i need out of this view...
I need to display a subterms list on parent's page, and on brothers/sisters pages too..
I use only one level of hierarchy.
I feel close but it keeps on showing all the terms, on any page...
Could someone help me about that ?
-P-
Comment #15
iamjon commentedpacome,
did you import the view dereine attached into your view?
if it didn't work please update the thread with more information as per the submission guidelines http://drupal.org/node/571990 and don't forget to search the issue queue for similar isssues.
marking this as closed.
Comment #16
JCB commentedI found a solution to the problem - display sibling/child terms of current term page (parent term).
Tried Taxonoomy Sub-Terms; however, it was not enough as I also wanted to display the count of each term next to it.
I ended up searching through any post I could find, which had anything related to sub-terms, child terms, parent terms, etc.
My problem was solved with views.
Here is my setup:
I installed/enabled Hierarchical Select and set the configuration to.
1. "Save term lineage".
2. Save values additionally to the core taxonomy system (into the 'term_node' table).
This automatically applied the "parent" terms to the nodes as well; which resulted in the functionality you are looking for.
I then created a view:
Relationships: "Taxonomy: Parent term"
Arguments: "(Parent) Taxonomy: Term ID" - uses Parent Relationship.
Action to take if argument is not present: "Provide default argument" --> Taxonomy Term ID from URL and ticked "Load default argument from term page".
Fields: "Taxonomy: Term", "Taxonomy: Term Node Count Term Node Count "
And finally created a "Block" display.
Hope I save someone else the trouble I had to go through.