Reset a search form when not encoding queries
Hi Low,
I am using Low Search for the first time without encoding the query.
I have two different exp:low_search:form(s) and want to combine the results.
When the query was encoded I could use the query parameter and either set it to "" or the segment where the query is. This would result in either combining the queries or not...
somehow this is missing with the non encoded counterpart.
with low_search:url I can set reset='yes', but there seems nothing for the form itself?
So basically I am looking for a reset parameter in the query form...
Thanks
Stefan
I am on EE 2.8.1 and Low Search 4
Replies
Low 10 Mar 2016 07:27
Indeed, there is no reset="yes" for the Form tag, and any search query that is present in the query string will be automatically set for the Results, Form, Filters and URL tags.
For the Form tag, this would only matter if you use conditionals to pre-populate certain values. You could use the {current_query_string} variable in those conditionals to check if there is indeed a query in the URL.
outline4 10 Mar 2016 10:13
In fact the form does NOT take into account any query string parameters that are present in the url.
But with the remember parameter I could tell it to include certain values from the query string:
So I guess for this situation I am setteled. I was confused that only the contrary of reset is available on forms. Maybe this is because it's low search store?
Cheers
Stefan
outline4 10 Mar 2016 10:18
While I am at it... Just a quick side question:
For query strings: Is it possible to work with category_url_titles instead of category_id's..
Something like:
instead of
?