Using exp:low_search:results with multiple search conditions
Hello Low,
I'n not sure if this is possible but here goes.
I'm using LS to replace a channel_entries tag so I can filter the results returned from a basic 'web banners' channel.
I'm searching a Grid fieldtype and I'm trying to filter on three grid fields.
'start_on' is a date field
'finish_on' is a date field
'where' is a Select Dropdown
Below is 'pseudo' of what I'm trying to accomplish.
{exp:low_search:results channel="banners"
disable='categories|category_fields|member_data|pagination'
search:banners_grid:start_on="<{current_time}"
search:banners_grid:finish_on=">{current_time}"
search:banners_grid:where="=Masthead"
dynamic="no"
limit="11"}
Is this type of filtering by three conditions achievable?
Thanks
John
Edit; I'm probably best off using 'Low Search Table' filter [https://github.com/low/low_search_table] for the two date fields but question still applicable to using the multiple conditions and more specifically how to use the multiple conditions.
Replies
Low 18 May 2015 13:33
Yep. That looks about right. As long as the search:-param targets the same table, the conditions are grouped together, so will apply to the same entry (or row). Don't think you need to use Low Search Table.
johnniefp 18 May 2015 17:25
Thanks, struggling to get this working though.
I'll persevere through docs and GetSat before pestering. :)
Low 18 May 2015 20:23
If you need more help, try describing what you expect as output, what you're actually getting, and look up the SQL queries in the output profiler as well as the lines in the Template Debugger that mention LS.