how to create taxonomy/term/5/2 for the category selected
WebDevelopers - September 23, 2008 - 01:04
Say if i had 2 categories example is below
News < first category id is 5 < taxonomy/term/5
Rap < second category id is 2 < taxonomy/term/2
When the user selects the first category they are redirected to
taxonomy/term/5 which shows all the content for the News category, Now I will like the user to select the Rap category which is the category News . Now the user selects the Rap category and is redirected to
taxonomy/term/5/2 < This is url I will like to have for the categories in News. How do i do this ???

Have a look through the
Have a look through the taxonomy modules - by memory there is one that does this - http://drupal.org/project/taxonomy_filter
Try 'taxonomy_dhtml'
Not sure I understand completely what you want, but the module 'taxonomy_dhtml' has multi-level hierarchies.
For example you can have a category displayed as 'Food (6)', and on the next line a indented category like -say- 'Cakes (4)'.
This means there are 4 nodes (or pages) about Cakes. Cakes being a 'child' of the 'Food' category. If you click 'Food' you will see the 4 Cake nodes and 2 others about Food. However if you click the Cakes category you will see only the 4 nodes about Cakes.
(Note: last time I checked there was no Drupal 6 version of 'Taxonomy_dhtml').
term url explanation
are actually of the form: taxonomy/term/termid(s)/depth
so taxonomy/term/5/2 is actually the list of term id 5 and any subterms up to 2 levels deep
If you want the nodes that are tagged with termid 5 AND termid 2, you need:
taxonomy/term/5,2
Also:
taxonomy/term/5+2 will show a listing of nodes that are tagged with either termid 5 OR termid 2.
The taxonomy_filter module mentioned earlier gives the user a menu where they can select combinations of terms.
--
Anton
Is there way to use pathauto to get the urls....
Is there way to use pathauto to get the urls like taxonomy/term/5,2 instead of a menu. I will like the user to select the category from a combo box then from there the user selects another category from the list.
terms and aliases
If you are just asking if pathauto can turn taxonomy/term/5,2 into taxonomy/term/foo,bar where foo and bar are the relevant term names...
Last I heard - no. The author of pathauto isn't keen on the idea as it would massively blow out the number of aliases required, most of which would hardly ever get used.
But the url aliasing that pathauto does is completely unrelated to whether or not there is a menu for selecting terms. Note: taxonomy_filter will use any matching path aliases in its menu links anyway.
Pathauto won't help with that. Unless you want your users to type in urls, you would still need some extra code for selecting the terms via whatever method.
That extra code sounds a bit like the hierarchical select module or maybe the faceted search module.
--
Anton