Search Engine with multiple lists on one page
3 posts by 2 authors in: Forums > CMS Builder
Last Post: July 21, 2011 (RSS)
By JeffC - July 20, 2011
I am having difficulty in making a simple search work on my site. The problem is occurring because I have 3 lists, calling three different tables, present on the same page.
It can be viewed here: www.wemakemagazines.co.uk/blog/
The search should relate to the blog archive only.
The problem occurs when no records are found. Everything works as it should in the main page but the two lists in the footer also return 'no records found'.
How can I make the search only relate to the main list and leave the footer lists intact?
Thank you
It can be viewed here: www.wemakemagazines.co.uk/blog/
The search should relate to the blog archive only.
The problem occurs when no records are found. Everything works as it should in the main page but the two lists in the footer also return 'no records found'.
How can I make the search only relate to the main list and leave the footer lists intact?
Thank you
Jeff
Re: [Jeffncou] Search Engine with multiple lists on one page
By Jason - July 20, 2011
Hi,
What you can do is turn off searching for any tables you don't want the search to affect. You do this by adding:
option to the getRecords() call for those tables that shouldn't be searched.
Hope this helps
What you can do is turn off searching for any tables you don't want the search to affect. You do this by adding:
'allowSearch' => false,
option to the getRecords() call for those tables that shouldn't be searched.
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/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [Jason] Search Engine with multiple lists on one page
By JeffC - July 21, 2011
Works perfectly, thanks.
Jeff