Views filter, taxonomy drill down / hierarchical select

internets - January 6, 2009 - 00:27

Hello,

I've been searching for a solution or hints on how to make a view filter based on taxonomy where you can select one vocab term then populate a second select list with that term's children. And if it's somehow possible to then have another drop down that is populated with terms(in a separate vocabulary) related to the first selection...

Ideally the hierarchical select module for views would suffice but it is not yet working. I also looked at faceted search but there is not yet views support.

Has anyone done this with drupal 6? How did you do it? is this best done on the 'theme' or 'module' level?

For example...

Car makes...
Honda --
Car models
Civic --

and a separate vocab (or possibly parent of makes)
Vehicle type
SUV
Sedan
Hatchback
etc

Or in music...

Artist
>>
Albums
>>
Songs

and a separate vocab (or parent of artists... not sure which is best)
Genre
Rock
Hip-Hop
Jazz
etc

So there is a select input for
"artist"
once selected, a second select input is populated with albums tagged with that artist

A third example...

State
>>City

then a separate vocab for "Interests" (or a parent of state?)
Restaurants
Outdoors
Entertainment

Any comments on how to create a view filter to do this?

Is there a better way?

internets - January 7, 2009 - 21:09

Is this the wrong way to look at achieving this functionality?

I've been looking at modifying the views module, trying to get hierarchical select to work with d6 / views2 and trying to find out how to make a custom filter all with limited success. I'm just not sure of the best angle to approach this.

Another example; I want make this one select drop down populated by a single vocabulary I have in use as a view filter.

[ parent
-child
--child ]

Into 3 select drop downs separated by the term hierarchy.

[ parent v ] [ -child v ] [ --child v ]

Here is another example of what I'm trying to achieve, but with 3 selects instead of two.

http://remysharp.com/wp-content/uploads/2007/01/select.html

Any help / hints / suggestions welcomed please.

What you're trying to

WorldFallz - January 14, 2009 - 15:40

What you're trying to accomplish is exactly what hierarchical_select does and it's an extraordinarily complex module. I would recommend putting your efforts into getting the d6 dev production ready if possible.

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

subscribing

no2e - January 7, 2009 - 21:53

.

Subscribing

CKIDOW - January 14, 2009 - 15:19

Subscribing

 
 

Drupal is a registered trademark of Dries Buytaert.