Thanks for sharing this great module! Very useful for nodes have multi-taxonomies.

How about display the 2nd vocabulary terms in another block?

I had created two vocabularies, Location and Info

Location: London, Tokyo, Newyork, etc
Info: Transportantion, Travel guide, Hotels, etc.

The first block is the terms of Locations, when people click London, they will be navigated to London page, where a second info terms block will shown in that page.

Is it possible?

Many thanks!

Comments

kevinqin’s picture

view the source here: http://www.elvisblogs.org/drupal/drupal-list-child-taxonomy-terms-curren...

I have problem in implementing it. Hope this could helps

jajathejazzcat’s picture

Let me make sure if I understand your need correctly.
1. 1st block shows a list of Location terms.
2. 2nd block, which is only shown on the Location terms page, shows a list of Info terms. Each Info term is shown only if there are nodes tagged with both Location and Info term. So lets say you click London, and info terms are shown only if there are nodes tagged with London and any one of the Info terms.

Is my understanding correct?

If so, I think you can try the following.
1. 1st Location block is a regular block, which is not generated by the tiered taxonomy block module. List all locations terms.
2. 2nd Info block is the tiered taxonomy block. Control when the block is shown by using php code in the block settings page.
3. Override the theme_tiered_taxonomy_block function in your template.php. Rather than listing both 1st and 2nd tier terms, you need to list only the 2nd tier terms (info) which fall under the clicked 1st tier term (location). Use arg() to determine which location term has been clicked.

Try and see if it works.

kevinqin’s picture

Many thanks jajathejazzcat, I will try this.