Is there a search.php file for CMSB?

5 posts by 3 authors in: Forums > CMS Builder
Last Post: May 18, 2016   (RSS)

By andreasml - May 14, 2016

Hi

I know that for earlier softwares like Realty Manager, there was a search.php file. Is there a similar file for CMSB?

Thanks

Andreas ML

By ross - May 17, 2016

Hi Andreas

There isn't a specific code generator for search pages and what you do instead is code them by hand.

What you do first is simple build a static HTML page that has your search form on it. 

Does that make sense? Do you know how to create a simple HTML page that has a form on it?

Let me know any questions or feedback.

Thanks!

-----------------------------------------------------------
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/

By andreasml - May 17, 2016 - edited: May 17, 2016

Hi Ross

I have used the following syntax in the list page but it does not respond. Probably something is missing.

<form method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?>"> 

<input type="text" name="title" value="" size=100>
<input type="submit" name="submit" value="Search">
</form>

Kind regards

Andreas ML

By Damon - May 18, 2016

Hi Andreas,

At the top of your page in the // load records make sure you have allowSearch set to true

'allowSearch' => true,

Next, you will probably be searching for keyword instead of a complete match so you need to add _keyword to your field you are searching.
Example: title_keyword

<form method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input type="text" name="title_keyword" value="" size=100>
<input type="submit" name="submit" value="Search">
</form>

Here is some reference for all the things you can do with searches:
http://www.interactivetools.com/docs/cmsbuilder/viewer_search.html

Let me know if you have any other questions.

Cheers,
Damon Edis - interactivetools.com

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