website searches for visitors

4 posts by 2 authors in: Forums > CMS Builder
Last Post: February 9, 2011   (RSS)

By rez - February 9, 2011

Where can learn how to set up a website search form for visitors.

If I have a database full recipes or food items and descriptions, I want a user to be able to search for words in the items and description fields. Like searching for "bacon" would bring up all item names that had bacon in the title or description.

So I would need to set up a form that searches the db and lists the records (in this case I would want to list chicken bacon sandwich, bacon cheeseburger item names as maybe links to the full item and description or recipe.

I see searches mentioned here but most seem to be referring to the admin's search? How are website searches done on the front end?

Re: [Jason] website searches for visitors

By rez - February 9, 2011

Oh. Looks great. Question, looking at the custom form documentation, I am wondering how to make a keyword search through the title AND the description?

thanks.

Re: [rez] website searches for visitors

By Jason - February 9, 2011

You can string names of fields together separated by commas. _keyword goes at the end.

<input type="text" name="title,description_keyword" />

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/