Hi All

Sincere apologies if this is covered elsewhere, I have tried looking but the terms, 'dropdown', 'filter' and 'search' are just too common in the search returns.

I have a content type with two fields that I wish to search/filter on.

I would like to present to the user a page with two dropdown boxes, the first of which would be 'Service Type' and the second would be 'Location'.

The user should choose a value from both and click a search button.

The returned items would be only those nodes which contain a match on both the Service Type and Location.

This seems like a simple requirement and yet I haven't seen any sites use this functionality.

Is it available in Drupal - can someone shine a guiding light?

many thanks

brian

Comments

gbrussel’s picture

You can use the Views module to display a list of your content and expose the two filter fields (Service Type and Location) to the user.

What are the two filters for? Are they matching words in the body? Content types? Taxonomy terms? Views should be able to handle it all, you just have to set your content up in such a way that it's easy to filter/sort. =)

brianmurray’s picture

Yeah the two fields are both based on separate taxonomy vocabularies so I'm hoping that will make it easier.

I think it's the filter fields part I'm obviously missing - off I go to research that part now... :)

b