-
- 2 Posts
Hi all
[[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!
-
- 2 Posts
Thanks!! It works!!! you are a star!
-
- 24,544 Posts
Try this:
&where = `[{"class_key":"modDocument"},{"OR:class_key:=":"modSymLink"}]`
-
- 24,544 Posts
Glad I could help. For future reference, here's how I got that:
$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'.