Thank you for the tip! I've used views before and never even noticed this feature. It looks like it's exactly what I was looking for. Thanks again!
~Kelly
Message: 6 Date: Tue, 29 Sep 2009 18:15:33 -0400 From: Shai Gluskin shai@content2zero.com Subject: Re: [support] Trying to create a search form which allows users to input criteria and then displays matching nodes To: support@drupal.org Message-ID: 9f68efb70909291515s29ed1ac1o90972a12c4b03535@mail.gmail.com Content-Type: text/plain; charset="iso-8859-1"
Kelly,
The most straightforward way to do this is using "exposed" filters with Views.
Look in the "filters" section of the Views form and choose one of the criteria you want to give to users as a filter. After you've chosen the criteria, you'll see a button the right hand side which says "expose," you want to click on that.
That should be enough to get you started. There are a gazillion options of how to set this up... experimenting is always a good thing!
Good luck,
Shai
On Tue, Sep 29, 2009 at 5:51 PM, Kelly Tanguay <ocelotspot86@gmail.com
wrote:
Hello, We are building a website for a car dealership. We have created a content type for inventory which allows the administrator of the website to enter
in
individual vehicles as inventory.
Now we would like to add a feature where a client can search through the inventory. For example, if a client wants to see all cars that are made
by
Honda, or if a client wanted to search for cars withing a particular
price
range. Ideally we would like to be able to display the search results
with
views, but can hard code the page to display the different nodes if necessary.
I understand that I am going to have to make a custom form. From what I understand, the best way to go about this is to take what the client inputted, and use that information to get the form to query the database, then display the nodes which match the criteria. However, I am a little fuzzy about the details. Has anyone set up anything like this before, or does anyone have any advice on the best way to go about doing something
like
this?
Thanks for any and all help! Kelly
-- [ Drupal support list | http://lists.drupal.org/ ]