Displaying results by collection not working since Low Search 3.0 upgade
I'm trying to search everything and display results by collection. "News" results displayed in one format, followed by "Products" results in another format, etc.
This no longer works following the upgrade to 3.0 and I'm not sure why. Only my first collection seems to be displaying anything.
Thoughts?
Replies
astuteo 15 Nov 2013 17:30
I changed the "collection" parameter in the results tag to "channel" and that seems to have solved it. Is there anything else that I should change based on what I'm showing here?
Low 15 Nov 2013 17:56
It could be that there are some quirks with multiple Results tag in the template -- will look into that.
You can remove the collection="all" param from the Form tag, as that doesn't do anything.
Have you considered using a single Results tag for all collections, and using conditionals like {if channel_short_name == 'news'} to generate the right html for each search result?
astuteo 15 Nov 2013 17:58
Sure, that would work. This was my first go-round with Low Search. Thanks!
Low 15 Nov 2013 18:16
I've found a bug and fixed it. It will be included in the next version. If you need it now, I can send you a patched version, just email me at hi at gotolow dot com.