Keyword Search with search filter
I am creating a database search that allows the user to enter keywords as well as choose from a dropdown list several different fields from which to refine the search. Everything was working great until...
No results. Let me explain.
When I enter a keyword, the returned results are fine.
When I filter by field, the returned results are fine.
When I do both and there ARE results, the returned results are fine.
The issue arrises when there are no results. I would like to show the user the search filters used on the search, even if there are no results to return.
I use {exp:low_search:keywords query="{segment_3}"} to show the user the KEYWORDS they searched for, even when no results are returned.
When there are results, I can use {low_search_keywords} from within the results tag.
Bottom line: show the low_search_search:...} field when there are no results.
Thanks for your time
Replies
Low 1 Mar 2013 08:48
It isn't possible to use the applied filters as variables in no_results at the moment. You'd have to use the Form tag to show them.
I'm currently working on an update that improves this.
Dave Freidel 1 Mar 2013 16:28
Thanks Low, I used the form tag (didnt even occur to me before), and it works nicely