help needed with basic search

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

By Deborah - October 17, 2018

Hi, willydoit.

This page in the online documentation might be of help:
https://www.interactivetools.com/docs/cmsbuilder/viewer_search.html

The example given for multiple search conditions is:
listViewer.php?color=blue&size=XXL

The above works for me, but the instructions also state, "Note that if 'where' clause is specified in the list options then any form field keywords will be ignored."

~ Deborah

By daniel - October 18, 2018 - edited: October 18, 2018

Hi willydoit,

Yes, this should be possible. As Deborah mentioned above, the general syntax for this should be something like "stock-listings.php?willows=1&stock_type=New" - though it sounds like you may have tried this already. Could you describe what happens when you use that link? Do you get no results, incorrect results, or some sort of error?

If no/incorrect results, the first thing I'd want to do is double check the data. With this URL we're expecting to see records with both "willows=1" and "stock_type=New", so I find it useful to manually verify in the admin that the records we want to see on this page meet these criteria, just to rule it out. If the data looks good, could you copy/paste what your getRecords() array looks like for this page?

Thanks,

Daniel
Technical Lead
interactivetools.com

Thanks both,

Issue resolved.