All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Split Search Results Based on Status

Dan Cooper 10 Apr 2020 13:13 question, complete

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

  1. 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.