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

By andreasml - May 18, 2016

Hi Damon.

Now it works!! Thank you  a lot. 

Kind regards

AML