<![CDATA[ multiple &where - My Forums]]> https://forums.modx.com/thread/?thread=86631 <![CDATA[Re: multiple &where]]> https://forums.modx.com/thread/86631/multiple-where#dis-post-554881
$x = array(
    array(
        'class_key' => 'modDocument'
    ),
    array(
        'OR:class_key:=' => 'modSymLink'
    )
);

echo json_encode($x);

exit;


I ran it in my code editor (PhpStorm), but it could be a snippet if you change 'echo' to 'return'.
]]>
BobRay Oct 31, 2017, 02:05 PM https://forums.modx.com/thread/86631/multiple-where#dis-post-554881
<![CDATA[Re: multiple &where]]> https://forums.modx.com/thread/86631/multiple-where#dis-post-554858 Quote from: BobRay at Oct 27, 2017, 08:49 PM
Try this:

&where = `[{"class_key":"modDocument"},{"OR:class_key:=":"modSymLink"}]`

IT works!, thank you so much BobRay,]]>
jacielluve Oct 30, 2017, 06:52 PM https://forums.modx.com/thread/86631/multiple-where#dis-post-554858
<![CDATA[Re: multiple &where]]> https://forums.modx.com/thread/86631/multiple-where#dis-post-554818
&where = `[{"class_key":"modDocument"},{"OR:class_key:=":"modSymLink"}]`
]]>
BobRay Oct 27, 2017, 08:49 PM https://forums.modx.com/thread/86631/multiple-where#dis-post-554818
<![CDATA[Re: multiple &where]]> https://forums.modx.com/thread/86631/multiple-where#dis-post-554813
why is

{"class_key:=":modDocument, "OR:class_key:=":modSymLink}

OR even using with ""...
{"class_key:=":"modDocument", "OR:class_key:=":"modSymLink"}


doesnt work? i keep seeing ids wich are weblinks in my results]]>
jacielluve Oct 27, 2017, 02:48 PM https://forums.modx.com/thread/86631/multiple-where#dis-post-554813
<![CDATA[Re: multiple &where]]> https://forums.modx.com/thread/86631/multiple-where#dis-post-477623 jeffercub Sep 13, 2013, 06:23 AM https://forums.modx.com/thread/86631/multiple-where#dis-post-477623 <![CDATA[Re: multiple &where]]> https://forums.modx.com/thread/86631/multiple-where#dis-post-477529
&where=`{"template:=":17, "OR:template:=":44}`
]]>
nir-z Sep 12, 2013, 10:52 AM https://forums.modx.com/thread/86631/multiple-where#dis-post-477529
<![CDATA[multiple &where]]> https://forums.modx.com/thread/86631/multiple-where#dis-post-477522
[[getResources?
&tpl=`news-item`
&parents=`[[*id]]`
&limit=`0`
&sortby=`publishedon`
&sortdir=`desc`
&includeTVs=`1`
&processTVs=`1`
&includeTVList=`thumbImage,featureImage`
&includeContent=`1`
&tvPrefix=``
&where=`{"template":"17"}`

]]

Current I have this but I would also like to display if the template is 17 or 44.

How do I do that?

Thanks!]]>
jeffercub Sep 12, 2013, 09:25 AM https://forums.modx.com/thread/86631/multiple-where#dis-post-477522