Last active
April 16, 2026 15:17
-
-
Save davidpede/a00fbd35ff7c0f69815c to your computer and use it in GitHub Desktop.
pdoResources where examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| &where=`{ "template:IN" : [ 1,2,3 ] } | |
| &where=`{ "template:NOT IN" : [ 1,2,3 ] } | |
| &where=`[{"alias:LIKE":"foo%", "OR:alias:LIKE":"%bar"},{"OR:pagetitle:=":"foobar", "AND:description:=":"raboof"}]` |
For anyone who found this wondering how do you do a NOT it's like this
&where=`{"featured:!=":"true"}`
Or if it's a checkbox, you might need. something like this
&where=`{"featured:!=":"true","OR:featured:IS":null}`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example 3:
&where=
[{"alias:LIKE":"foo%", "OR:alias:LIKE":"%bar"},{"OR:pagetitle:=":"foobar", "AND:description:=":"raboof"}](Watch the square brackets!)