All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Displaying previous form's keywords in search results

notoriouswebmaster 24 Apr 2013 20:18 question, complete

Low_search: I need to display previous form's keywords in the search form on the search results page. But the {low_search_keywords} variable is associated with the {exp:low-Search_results} tag pair. How do I make this work for me? Thanks.

Replies

  1. Low 24 Apr 2013 20:22

    What do you mean by "previous"? First you search for "foo", then you search for "bar" but you want to show "foo"? That isn't possible.

    If you're displaying search results, then inside the low_search:results tag pair, you can use {low_search_keywords} for the current keywords. Outside the tag, you can use the {exp:low_search:keywords} tag. Is that what you're after?

  2. notoriouswebmaster 24 Apr 2013 20:31

    On the search results page, above the results, I have a form. I want the keywords in the form, so users can refine their search. So, putting the low_search:form inside the low_search:results will allow me to use low_search_keywords. I got it working. Thanks for your help.

  3. Low 24 Apr 2013 20:33

    Or, you could add the query="" parameter to the Form tag, so you can use {low_search_keywords} in there.