Can you have one form w/ two sets of results?
Is it possible to have two sets of search results occur from one search query?
Example: I have channel entries with titles & a 'tags' custom field. I'd like to be able to submit one form, and have returned: (1) a list of results that match either title or tag and (2) a list of matched tags (without repeats).
I tried setting this up with two search collections, but I can't figure out how to pass keywords to a customized search results tag pair.
Any suggestions?
Replies
Low 17 Aug 2011 19:29
Hi Nathan,
It is possible to feed one query to two low_search:results tags. You can also explicitly tell the low_search:results tag which collection to use.
So, I haven't tested this, but you should be able to set up a search form where you do *not* define a search collection, and in your search/results template hard-code the collection in the two low_search:results tags.
Something like this:
let me know if that works out.
Low 18 Aug 2011 11:24
I just tested this myself, and currently the query parameter will override any hardcoded parameters. I've changed this for the upcoming version, so any hardcoded parameters will override the given query parameter. That way, the above solution should work.
Low 9 Sep 2011 08:01
The latest version (v1.0.5) supports this feature.