Hello,

I seek to create an advanced search form, which looking into the content according to the fields that were filled by user.

Exemple :

In my content type "Trip", i have three fields : City, Country and Hôtel.

How to make a search form, with the three fields and submit butto to search in the contents according to the fields ?

Thanks for your help

Comments

WorldFallz’s picture

Checkout the http://drupal.org./project/views module. Create a page view with the fields you wish to expose, then add filters for those fields, and click the "expose" button to create the drop down that allows the user to interact with the view.

===
"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

aman_kohli’s picture

Now if my content has 15 different fields like
price
no. of bedrooms
bathrooms
city etc.
and I want to provide a search form based on all this forms. What can I do for that?

Thanks

quicksand’s picture

Thanks very much,

I tried this module and it works perfectly, but with the field of "select" type, when i click the "expose" button, the field is changing in simple text field, while the search form must contain a field of "select" type.

How to ?

Thanks