exposed filters with hierarchical select

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by mp on June 25, 2009 at 4:44pm

hello

D6
modules: cck, views, hierarchical select (newest versions)

i ́m working on a real estate website. i added some content types like house, appartment and so on
if you add a real estate, you can add a location too, this is realized with taxonomy.

the location is split in country > state > destrict > zip-code > city> street
country is a vocabulary, state is a vocabulary and so on ...

now i have a view with exposed filters and there you can search for the location too.
the problem is that i don ́t know how to get this to work how i want to. you can search for every term, but there is no relationship between them.

what i ́m looking for:
you choose austria and then you should only get states of austria in the state-field (this could be a drop-down-list or better a auto-complete-textfield). then you choose a state, for example vienna, and then you get only destricts of vienna and so on

does anyone know how to realize that? i tried a lot, but i don ́t have a solution for that now ...

my drupal-know-how is advanced, php-know-how very poor

thanks+greets

Comments

This is supported since

Posted by wim leers on September 26, 2009 at 12:58pm

This is supported since mid-August. Updated to the latest version for Drupal 6 to get this functionality! :)

More information

Posted by pronce on October 22, 2009 at 3:22pm

Hi.
Is there more information about this feature out there? Especially how to use it in a module?
Thx in advance.

ok, thanks ... i will update

Posted by mp on October 2, 2009 at 6:56am

ok, thanks ... i will update :)

but a last (i hope) question ... should you make for each option a category? so one for country, state, destrict and so on ... or should i make one category location with terms countrys and for each country terms with their destricts and so on ... because i think it is necessary for hierarchical select to have a tree of terms, right?

greets

Yes, one term for each

Posted by wim leers on October 3, 2009 at 8:25am

Yes, one term for each country/district/city/...

ah, ok, thxs i will give it a

Posted by mp on October 3, 2009 at 8:36am

help

Posted by vmoctavio on January 3, 2010 at 12:09am

Did you get to do what you were looking for? I'm trying to do the same and not get it. Thanks and regards.

Hi,
I am Sashi Kiran, i am not getting any way to integrate country --> state --> city selection option in exposed filters in my view...Is there any way to get this job done...plz help me...

Thanks in advance..

the state list is decided by the country selected

Posted by sashi.kiran on July 15, 2011 at 9:41am

Thank you Asghar for your quick response,

I got this reply:
I think you can easily achieve this by views module, For this you should add country,states and cities as selectlist fields in node form then you go in views module and add these as views fields and as well as views expose filter then you view your results.

But what i want is when the user selects the country then the state list should contain only the states of the selected country...not all the states....i want such shorting functionality in my views exposed filter....

thanks in advance

Views Developers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /