If I click on the link taxonomy/term/1 I get a linked list of all nodes tagged with term #1. Is there a similar link at the vocabulary level that will give me a linked list of all terms in that vocab?
For example, I have a vocabulary "Downloads" with terms "Reference Docs" (taxonomy/term/1), "Supplements" (taxonomy/term/2), and "Software Tools" (taxonomy/term/3). If I create a URL for taxonomy/term/3 I get a page will all the nodes tagged as "Software Tools." Well and good.
But what I'd like to create is a "landing page" for Downloads which gives me a page with all the terms in that vocabulary. Something like this (URLs in parenthesis):
Reference Docs (taxonomy/term/1)
Supplements (taxonomy/term/2)
Software Tools (taxonomy/term/3)
The nearest thing I can figure is creating a Downloads link like this: taxonomy/term/1,2,3
But that isn't really what I want because (1) it's not automated; I have to update the link if I add a new term and (2) it lists the actual nodes; I'd prefer just the terms.
I can't be the first bloke to ask about this, but I can't (for the life of me) find an answer in the handbook...any suggestions?
Cheers,
-Erin
Comments
Taxonomy Context Module
Take a look at the Taxonomy Context module, (then you can render the block in a page).
Here's some reading
You might get some hints here:
sort taxonony links ($terms) by vocabulary ($vid)
How to control Block visibility by Vocabulary ID
Views 1.x user documentation
Taxonomy Checkboxes V2: The Revenge
Nancy W.
now running 5 sites on Drupal so far
Drupal Cookbook (for New Drupallers)
Adding Hidden Design or How To notes in Your Database
NancyDru
Another post similar to this one -
Check out http://drupal.org/node/128085. It describes how to list all the terms within a vocabulary in a block
Worked
The snippet in that article works great for me! Thanks.
Care to take a shot at an author count?
Nancy W.
now running 5 sites on Drupal so far
Drupal Cookbook (for New Drupallers)
Adding Hidden Design or How To notes in Your Database
NancyDru
More Details...?
Could you be a bit more specific as to what you're looking for?
I got it working already
but thanks for asking.
Nancy W.
now running 5 sites on Drupal so far
Drupal Cookbook (for New Drupallers)
Adding Hidden Design or How To notes in Your Database
NancyDru
here's what worked for me
hi.
below is a code snibbit that works for me. it prints all terms in vocabulary number 1. if this what you want to achieve then it's the simplest thing you could try.
Mohammed al-shar'
Nattiq Technologies
Mohammed al-shar'
The Explorer
If your vocabulary is a
If your vocabulary is a hierarchy and the terms you want have the same parent, for example
Downloads (taxonomy/term/4)
--Reference Docs (taxonomy/term/1)
--Supplements (taxonomy/term/2)
--Software Tools (taxonomy/term/3)
Then you can use a "depth": taxonomy/term/4/all
Otherwise, if you want to list the nodes of a whole vocabulary you could try using the Views module for your taxonomy listings, which gives you a lot of flexibility.
Wow...Ask and you shall
Wow...Ask and you shall receive. :)
I'll do these for homework and see what works best.
Cheers for the prompt suggestions!
-Erin
Hierarchy
If your vocabulary is setup in a hierarchy, you can use this code:
If you don't have it setup in a hierarchy then just remove the $parent line or use the code from above.
taxonomy_forceall.module
aymerick came with a module to address this issue - imo it should go to the core of Drupal
http://drupal.org/project/taxonomy_forceall
quote from the module info;
to list all terms of a vocabulary with the number of recurrences
Sorting the Output?
Hello!
If I use the php snipet to get the listing, could I some how manage to sort the output, depending on the node creation date (for example)?
So that the first term in the list would be the term with the newes content, and the last one would have the first created content?
Restrict to node type
Could anyone suggest how this code could be modified to exclude a particular node type?
I have a vocabulary that is shared between the 'book' and a custom 'report' node types. I'd like to list only the terms that have been used in books, but can't figure out how.
I guess in summary I'd like to display all terms in a vocabulary that have been applied to node type 'book'.
Any pointers gratefully received!
Cheers,
Tom
Try
Taxonomy Browser and Node Type Filter
Nancy W.
Drupal Cookbook (for New Drupallers)
Adding Hidden Design or How To notes in your database
NancyDru
Thanks Nancy, I'll give them
Thanks Nancy, I'll give them a try!
I had the same need. This
I had the same need. This module solved.
http://drupal.org/project/vocabulary_list_nodes
Also
Taxonomy List will do this too - plus more.
NancyDru (formerly Nancy W. until I got married to Drupal)
NancyDru