Search Code

6 posts by 2 authors in: Forums > CMS Builder
Last Post: May 27, 2015   (RSS)

By Damon - February 19, 2015

Try changing this code:

<input name="name" type="text" class="search-field" id="search" value="search" onfocus="if(this.value == 'search') { this.value = ''; }" /></form>

To this:

<input name="name_keyword" type="text" class="search-field" id="search" value="search" onfocus="if(this.value == 'search') { this.value = ''; }" /></form>

Here is a link to more search field options:
http://www.interactivetools.com/docs/cmsbuilder/viewer_search.html

Let me know if this gets the results you are after.

Cheers,
Damon Edis - interactivetools.com

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

By dccreatives - May 27, 2015

Can I search more than one field? Right now it searches the name field, but I want it to show results for more than just that one field.

By Damon - May 27, 2015

Yes, you can search multiple fields just as easy as one field. Just create a comma seperated list of fields followed by the search prefix.

Example:
articleList.php?title,summary,content_keyword=Vancouver

Is this what you had in mind?

Cheers,
Damon Edis - interactivetools.com

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

By dccreatives - May 27, 2015

I meant in the input field of the form action

By Damon - May 27, 2015

Hi again,

Try this:

<input type="text" name="title,summary,content_keyword" value="">

Let me know if this is works for you.

Cheers,
Damon Edis - interactivetools.com

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