By effebi on
I need to list every nodest belonging to one vocabulary by using an URL path..
I have Vocabularies that use as Categories and other as Tags, I need to have an "automatic" path
Eg:
Vocabulary "Contintens" has 5 terms and I use it as url such as:
http://mydomain.com/taxonomy/term/1+2+3+4+5
Vocabulary "Cities" has thousand terms and I can't add to my url every different terms:
http://mydomain.com/taxonomy/term/6+7+8+9+10+59+550+1002+4000+4589+10000+......
what I'm looking for is something like http://mydomain.com/vocabulary/all or something like this...
have anyone an idea about it?
Comments
Views module
Instead of the standard category listings, you can use the views module and set up a filter with "Taxonomy: Vocabulary name".
Otherwise, if you have to use only standard category listings, then the "all" parameter is available only for terms (categories and their subcategories), not for whole vocabularies.
I also need this feature
effebi,
I'm looking to do the same exact thing. That is, list all nodes associated with terms in a single vocabulary. In my case there's only a dozen terms, but even so it's still a drag having to edit the link every time a new term added.
Did you try CogRusty's solution? If so, was it successful?
Isn't there a "built-in" way to accomplish this without the overhead of another module?
I mean if you have a vocabulary called "sports" which includes "baseball", "basketball" and "hockey", doesn't it make sense to have the ability to list all "sports" nodes? Perhaps something like taxonomy/vocabulary/sports or taxonomy/vocabulary/1 (where "1" is the ID of the taxonomy vocabulary.)
Any comments/suggestions is appreciated.
There's
There's http://drupal.org/project/taxonomy_list It should help you.
not quite
Gurpartap Singh,
I was excited to read your post and quickly proceeded to download and install taxonomy_list, but unfortunately it's not what I was looking for.
I'm looking to creating one link to print all nodes within a vocabulary without having to specify each term individually (i.e. taxonomy/term/1+2+3+4+5+6+7+8+9+10).
Please let me know if you or someone else have any suggestions.
The taxonomy_list module
The taxonomy_list module lists terms, not nodes.
Using only core Drupal, you can't list all the nodes in a vocabulary, you can only list all nodes under a term and its sub-terms using the syntax taxonomy/term/nn/all where nn is the id of a term.
For any other node listings (by vocabulary, by node type and much more) you have to use the views module.
Views Module
I'm using the Views module to do this in several places. It works nicely.
views module
Thanks for the clarification. I thought about restructing the vocabulary and using sub-terms as you describe, but opted not to. It just seems like an obvious omission that you should be able to list all nodes for a vocabulary.
In any event I am now preparing to install the views module. I previously considered using it, but the beta version distinction concerned me. However based on the variety of favorable comments it seems to be quite stable.
An alternative route...
If anyone is still interested in this functionality, I happened to find a method of doing this in a round about way. It involves using the Taxonomy Term Menu module but doesn't rely on the module to build the actual menu item. Here's how it works:
1. Install the Taxonomy Term Menu module.
2. Create a taxonomy vocabulary and create terms within it or optionally set it up as a free tag vocab.
3. Configure the Taxonomy Term Menu module to create a menu from the vocabulary you established in step 2.
4. Locate and click to the parent menu item and copy the URL to your clipboard.
NOTE: the vocabulary name becomes the parent menu item and the terms become the children items and will dynamically appear and disappear as they are added or deleted from the vocabulary. In a free tagging environment, this is unacceptable since it could potentially generate extremely long menus.
5. Unpublish the menu item it creates in the Navigation menu by unchecking the 'enabled' checkbox.
6. Create a new menu item manually and assign the URL you copied from step 4.
That's it. You now have a single menu item that will show all nodes in a particular vocabulary in order of newest first, and you won't have a long list of term menu links.