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