Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By drizzt on
Hi to all! :)
I'm developing web sites on drupal 4.7 and I'm having some troubles.
Is it possible to call a page that intersects more then one taxonomy?
Thanks in advance.
Comments
Content organized by terms
Is this what you are after?
Extract from drupal help:
In order to view the content associated with a term or a collection of terms, you should browse to a properly formed Taxonomy URL. For example, taxonomy/term/1+2. Taxonomy URLs always contain one or more term IDs at the end of the URL. You may learn the term ID for a given term by hovering over that term in the taxonomy overview page and noting the number at the end or the URL. To build a Taxonomy URL start with "taxonomy/term/". Then list the term IDs, separated by "+" to choose content tagged with any of the given term IDs, or separated by "," to choose content tagged with all of the given term IDs. In other words, "+" is less specific than ",". Finally, you may optionally specify a "depth" in the vocabulary hierarchy. This defaults to "0", which means only the explicitly listed terms are searched. A positive number indicates the number of additional levels of the tree to search. You may also use the value "all", which means that all descendant terms are searched.
Intersections
As already mentioned, the standard way is /taxonomy/term/x,y for intersections and /taxonomy/term/x+y for unions.
Our 4.6 site (http://knowledge.ilign.com) has a hack to the taxonomy_context module to automatically create filtering menus for these intersections so the user can narrow down their selections. See this forum thread for more details - http://drupal.org/node/55192.
I've just about finished a standalone module for 4.7 that does this much cleaner - eg using a block for the menu and extending the vocalulary edit form to select filter vocabularies. It's working, I've just got a couple of finishing touches to add to it. Let me know if you'd be interested in trying it out.
--
Anton
New to Drupal? | Forum posting tips | Troubleshooting FAQ
Example Knowledge Base built using Drupal
Intersections module. Sounds good!
I'd be interested in trying / testing your intersections module for 4.7.
I'm relatively new to Drupal. Building a site that needs to use multiple taxonomies for filtering and displaying nodes. Sounds like this may be what I've been thinking of doing myself.
Though, I've recently found taxonomy_dhtml has some bugs that make it unusable in my version of 4.7 -- presumably due to the new 4.7 forms api.
Try this
Bear in mind that its beta level code at this stage. It works fine on my test site, but probably needs wider testing now.
http://misc.ilign.com/drupal/taxonomy_filter.module (for 4.7)
--
Anton
New to Drupal? | Forum posting tips | Troubleshooting FAQ
Example Knowledge Base built using Drupal