Skip to content

Instantly share code, notes, and snippets.

@rtripault
Created November 7, 2010 12:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtripault/666112 to your computer and use it in GitHub Desktop.
Save rtripault/666112 to your computer and use it in GitHub Desktop.
Syntax exemple(s) to use &where param with MODx getResources
&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"}}` (source: http://modxcms.com/forums/index.php?topic=52307.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment