searching for partial phrases?

3 posts by 2 authors in: Forums > CMS Builder
Last Post: June 19, 2009   (RSS)

By isdoo - June 18, 2009

Hi,

Having read the docs, I am not sure if this is possible & searching for the words 'search' here bring up a lot of posts ;)

Although I can't find any examples of code for a search box, I am sure it is not too hard, however is it possible to search for a certain word or part of it?

For example can one search for 'fred' and get back articles on Fred smith, Frederick Jones, Alfred Watson etc.?

Thanks.

Re: [isdoo] searching for partial phrases?

By ross - June 19, 2009

Hi there

Thanks for posting!

A search form for CMS Builder is bascially just a regular HTML form. All you need to do is make sure the fields in your form have the same names as the fields in your database.

So, if you were looking in the "name" field, you would have something like this on your form:

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

Now, you can actually turn that into a keyword search like this:

<input type="text" name="name_keyword">

I think that's the one you are looking for :). You can also have a read through our online docs for some more search options:


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


Keep me up to date with how you are making out :).
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/