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.

Comments

wim leers’s picture

Assigned: Unassigned » wim leers
Status: Active » Fixed

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.

cookiesunshinex’s picture

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.

wim leers’s picture

Probably it's indeed a hook_block() implementation with a form in the block.

In the end, it's really just a form :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.