Search Field
21 posts by 3 authors in: Forums > CMS Builder
Last Post: July 6, 2011 (RSS)
By robin - June 30, 2011
Line 14 looks like the right place to add the new WHERE condition from Jason.
What does debugSql output now when you search for dia 1x1?
Thanks,
Robin
Programmer
interactivetools.com
Re: [robin] Search Field
By dccreatives - July 4, 2011
By robin - July 4, 2011
I found a problem from the sql output. I think your variable is named wrong and is showing up blank in the query.
@$_REQUEST['name_keywords']
should be:
@$_REQUEST['name_keyword']
Hope that helps,
Robin
Programmer
interactivetools.com
Re: [robin] Search Field
By dccreatives - July 4, 2011
When I search Ray 8 or Ray8. I am getting the correct results.
When I search Dia1x1 or Dia 1x1, Day 1x1, twin beam2, twinbeam2. I get no results.
By robin - July 4, 2011
Please post the new sql debug information, maybe there will be another clue.
Thanks!
Programmer
interactivetools.com
Re: [robin] Search Field
By dccreatives - July 5, 2011
By robin - July 5, 2011 - edited: July 5, 2011
(REPLACE(name, ' ', '') LIKE '%dia1x4%' AND (`name` LIKE '%dia1x4%'))
It is the automatic search that is throwing off the query. We can prevent that by adding this line to your getRecords Code:
'allowSearch' => false,
Hope that helps,
Robin
Programmer
interactivetools.com
Re: [robin] Search Field
By dccreatives - July 5, 2011
By robin - July 5, 2011
Thanks,
Robin
Programmer
interactivetools.com
Re: [robin] Search Field
By dccreatives - July 5, 2011
www.axislighting.com/cms
The site is going to launch soon and we believe it came out really nice.
Let us know what you think.
The catalog is found under the Products Link.