Using parameters
Hi Low
I am trying to filter my search results by the date added. I was trying to use the "display_by" parameter combined with the "limit" parameter.
I have tried adding it to the search results tag:
{exp:low_search:results query="{segment_3}" display_by="day" limit="7"}
I have tried adding it to the search form tag:
{exp:low_search:form collection="property_type|price" search_mode="all" result_page="Test_Area/property_search_results" display_by="day" limit="7"}
And I have tried adding it as a form:
I have also tried other parameters and I just can't get it to work. I'm sure it is me being a numpty, but I just didn't really understand the instructions tbh.
Many thanks
Gabe
Replies
Low 18 Jul 2012 18:08
Hi Gabe,
You should be able to get it working (I just managed it in a test) by setting the parameters to the low_search:results tag, like in your first example.
Try it again and clear your cache. If it doesn't work, enable the output profiler and look at the queries. There should be a query where it searches t.year, t.month and t.day. If that's there, the results should be grouped per (in your case) 7 days.