How to create a site search?

9 posts by 4 authors in: Forums > CMS Builder
Last Post: March 13, 2009   (RSS)

What do I need to do to create a simple site search box in CMS Builder?

Please note, this is my first time with PHP!

Joe
High quality residential training for writers, actors & Film Making - Click Here for further information

Re: [Moonworks] How to create a site search?

By Dave - November 10, 2008

Hi Joe,

Have a look at the search docs page here:
http://www.interactivetools.com/docs/cmsbuilder/viewer_search.html

Give it a try and let me know if you have any questions.
Dave Edis - Senior Developer
interactivetools.com

Re: [Moonworks] How to create a site search?

By Moonworks - November 10, 2008 - edited: November 10, 2008

thanks

Just took a look. Is there a simple example of code I can put in to create the searchg box, ready for the user to type into?
High quality residential training for writers, actors & Film Making - Click Here for further information

Re: [Moonworks] How to create a site search?

By Dave - November 11, 2008

Yes, but it's section specific - not site wide. To create a section specific search you just use some code like this (from the search docs):

<form method="POST" action="/path/to/your/listViewer.php">
<input type="text" name="title,content,other,fields,you,want,searched_keyword" value="">
<input type="submit" name="submit" value="Search">
</form>

Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] How to create a site search?

Thanks, I'll have a play...
High quality residential training for writers, actors &amp; Film Making - Click Here for further information

Re: [Dave] How to create a site search?

Yes, but it's section specific - not site wide.


Hi Dave,

I have got the search to work on one section without a problem. Is there anyway to make it search multiple sections?

Cheers,

B

Re: [benedict] How to create a site search?

By Dave - February 10, 2009

Hi Benedict,

Yes, have a look at this post and the attached file:
http://www.interactivetools.com/forum/gforum.cgi?post=61466#61466

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [sidcam] How to create a site search?

By Dave - March 13, 2009

Hi Sid,

When you submit a search for one table the other viewers on the page are probably automatically applying it to themselves as well. To make a viewer ignore search terms add this option:

'allowSearch' => false,

Hope that helps, let me know if you need more details on that.
Dave Edis - Senior Developer
interactivetools.com