Adding "is not related to" operator to relational field condition rules #19048
Unanswered
adrianjean
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, relational field conditions for Categories, Tags, etc. only support:
I would like to add a fourth operator —
is not related to— that excludes entries related to specific elements.I used AI to create a patch (attached) to add this and I tested it against
CraftCMS 5.10.5and it's working. The patch applies changes to RelationalFieldConditionRule. Sharing here in case it's helpful!Patch:
relational-field-not-related-to.patch
Beta Was this translation helpful? Give feedback.
All reactions