multisearch :label and image in results.

6 posts by 4 authors in: Forums > CMS Builder
Last Post: October 3, 2012   (RSS)

By rez - August 11, 2011 - edited: August 11, 2011

1. Is there a way to display an uploaded image in the results of a multisearch. Like showing this for product results:
Name
Description
thumbnail image

2. Well what else CAN we show in results? Just a titleField and summaryField? Name and description is working fine below. I'd like some more options / advancements / details. If that's our only to options, what else can go in them? Like is there a way to show a record in results that has a checkbox toggled?

3. Is there any way to search the label list of an item? In this case, it's an item with a category name/num list from another table. If a category was "12 inch latex balloons" and someone searched "balloon", all the balloon products would appear in the results that had their category set to 12 inch latex balloons. That would be great. Otherwise, if the :label doesnt work, i'm guessing it's just searching through the "num" of the category. :( Example that's not working:

$searchTables = array();
$searchTables['items'] = array(
'viewerUrl' => 'itemDetails.php',
'titleField' => 'name',
'summaryField' => 'description',
'searchFields' => array('name','description','category:label'),
);


thanks. I'm very glad i finally got this working. Hoping to get a little fancier. :)

Re: [Jason] multisearch :label and image in results.

By zip222 - January 13, 2012

Is is possible to use that "field1" in the outputted results? If so, how?

Re: [zip222] multisearch :label and image in results.

By zip222 - January 13, 2012

nevermind...

echo $record['field1']

doh!

Re: [Jason] multisearch :label and image in results.

By Mikey - October 2, 2012

Jason or anyone who can help....

Is it possible to search the value of a check box = 1 using the multiSearch?

Here's an example of my code:

$searchTables['business'] = array(
'viewerUrl' => 'business_details.php',
'titleField' => 'name',
'summaryField' => 'content',
'searchFields' => array('name','content'),
'field1' => 'member = "1"',
);

Re: [zick] multisearch :label and image in results.

By Jason - October 3, 2012

Hi Zick,

Currently, multisearch will only allow you to search for a single value. If you need to only output records where a checkbox is checked, you could filter those out as part of your foreach loop.

Hope this helps,
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

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