Split Search Results Based on Status
I figured out how to do this but it's messy:
[code]
{exp:low_search:results
query="{segment_3}"
exact="search:title"
status="open"
channel="carepackage"
dynamic="no"
require_entry="yes"
}
{Title} Some Text for OPEN entries
{/exp:low_search:results}
{exp:low_search:results
query="{segment_3}"
exact="search:title"
status="Booked"
channel="carepackage"
dynamic="no"
require_entry="yes"
}
{Title} Some Text for BOOKED entries
{/exp:low_search:results}
[code]
Is there a simpler way to do this. I am unable to use the "if no results" statement in this scenario
Again Many thanks and stay Safe.
Replies
Low 12 Apr 2020 11:53
I'm afraid that's the way to do it. Just like using the native channel:entries tag, the results tag doesn't let you group output based on, in this case, status. You need multiple tag pairs.