By svref on
How do I get drupal to display content tagged with subterms of a taxonomy term in its page for the term?
Wordier version of the question:
There is a term "what we do" and in it "education" and "advocacy" both list that term as a parent. I go mark a bunch of different contents as "education" or "advocacy". But when I go to the page for "what we do" (aka /taxonomy/term/3), the page is empty. I was expecting it to include everything marked "education" or "advocacy". How do I do this?
PS: I expect to grow the subterms of "what we do" in the future, so I'm reluctant to just link to /taxonomy/term3+4+5+6+..., and anyway URL aliases seems to replace '+' with a space, which is wierd and dismaying.
Comments
I think that the Taxonomy
I think that the Taxonomy Subterms module is trying to do that.
Count missing in Taxonomy Sub-Terms
I had a similar problem.
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.
Developer @ http://www.magicbullet.co.za
Drupal site: http://www.weddingdirectory.co.za