2

Is there a way for the {exp:low_search:results} tag to display everything as a default when there is no query segment?

3

Yes. Having a query="" parameter in the Results tag will trigger no results if the parameter is empty or invalid. Omitting the parameter altogether will allow the Results tag to show all entries.

So, this will return no results if {segment_2} is empty:

{exp:low_search:results
    query="{segment_2}"
    ...
}

And this will show all results if {segment_2} is empty:

{exp:low_search:results
    {if segment_2}query="{segment_2}"{/if}
    ...
}
3
  • I tried your solution but it seemed that now, my form doesn't filter at all. Jan 18 '13 at 2:18
  • Then share a bit more info. What does your Results opening tag look like? What is the URI for the search results? Open a GetSat thread, if that's easier.
    – Low
    Jan 18 '13 at 7:53
  • It turned out that the problem is not with low search. Another add-on was messing with the parse order of the tags. Jan 25 '13 at 4:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.