Uh oh!
There was an error while loading. Please reload this page.
[5.x] Add overlaps and doesnt_overlap conditions and modifiers - #9491
Conversation
includes condition and modifierincludes and doesnt_include conditions and modifiersincludes and doesnt_include conditions and modifiersincludes and doesnt_include conditions and includes modifierafonic
commented
Feb 10, 2024
Good job! This is very useful and will solve not being able to filter by any field that gets saved by an array (like multiple select, checkboxes etc). |
robdekort
commented
Mar 5, 2024
This is very useful, and seems to work like a charm. I ran into a Statamic limitation and @afonic pointed me to your PR Ryan. Thanks both. |
robdekort
commented
Mar 5, 2024
Jason do you reckon this will make the cut someday and I can patch it in? Otherwise I'll work on a query scope instead. |
jasonvarga
commented
Mar 6, 2024
More than likely, but not 100% sure. |
robdekort
commented
Mar 6, 2024
Gotcha. Thanks Jason. |
jacksleight
commented
Apr 5, 2024
Nice! This will close statamic/ideas#910 |
includes and doesnt_include conditions and includes modifierincludes and doesnt_include conditions and includes modifierincludes and doesnt_include conditions and includes modifierincludes and doesnt_include conditions and modifiersjasonvarga
commented
Jan 6, 2025
ryanmitchell
commented
Jan 6, 2025
I guess it could be overlaps/doesnt_overlap now? |
includes and doesnt_include conditions and modifiersoverlaps and doesnt_overlap conditions and modifiersryanmitchell
commented
Aug 8, 2025
@jasonvarga thanks for merging #11112 - I've updated this to be overlaps/doesnt_overlap now. |
Uh oh!
There was an error while loading. Please reload this page.
This is a second go at this and is an alternative to / replaces #8357
This PR adds an
overlapsmodifier and tag condition, as well as adoesnt_overlaptag condition. The Modifier is intentionally a loose comparison, so if any of the values in needle are found it counts as a match. This is to mirror howwhereJsonOverlaps()works on the builder side.Closesstatamic/ideas#910