Can HS be used in a search?
cookiesunshinex - October 23, 2009 - 18:34
| Project: | Hierarchical Select |
| Version: | 6.x-3.x-dev |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Wim Leers |
| Status: | closed |
Jump to:
Description
Hi,
I've figured out how to use HS when selecting the taxonomy on a CCK node.
I'm wondering now, if it is possible to use HS fields on a search form.
One example, would be an event website, where you have many venues, many speakers, many cities, and many countries.
I looked at the http://standagainstpoverty.org website, and it is very similar to what I want to do.
Can you explain how they did the form for creating the events, and searches on that site?
Thanks in advance.

#1
Just create a custom form or alter the search form and add a HS form item, along with the necessary logic in the submit callback. You need to know Forms API and look at API.txt to see how to configure a Hierarchical Select form item.
#2
On the http://standagainstpoverty.org example, the search fields are in a block.
Was this done with a view with an exposed form? Or was it a simple form in a block?
Thanks for taking the time to respond.
#3
Probably it's indeed a hook_block() implementation with a form in the block.
In the end, it's really just a form :)
#4
Automatically closed -- issue fixed for 2 weeks with no activity.