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: [rez] website searches for visitors

By Jason - February 9, 2011

Hi,

Take a look at the Search Engine section of the CMS Builder docs:

http://www.interactivetools.com/docs/cmsbuilder/viewer_search.html

These can be used on front end forms.

For example, if you have a CMS Builder field called "description" and you wanted to search for a string within that field, you could use an HTML field like this:

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

Hope this helps get you started.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

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

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.