Modx 2.7.3
getResources 1…6.1
Tagger 1.11.0
Hello,
I am using the getResources snippet with TaggerGetResourcesWhere it works fine.
[[!getResources? &where=`[[!TaggerGetResourcesWhere? &tags=`aphids,flowers` &groups=`1,2` &matchAll=`1`]]` &parent=`5` &tpl=`products` &limit=`0` &sortdir=`ASC` &sortby=`menutitle` &processTVs=`1` &includeTVs=`1`]]
I’m trying to use modx => runsnippet to do the same thing, but it doesn’t work. I think I am making mistakes in the formulation of the runsnippet.
Could someone tell me where my mistakes are?
$result = $modx->runSnippet('getResources', array('where' => $modx->runSnippet('TaggerGetResourcesWhere', array('tags' => 'aphids,flowers', 'groups' => '1,2', 'matchAll' => 1,)), 'parent' => 5,'tpl' => 'products', 'limit' => '0', 'processTVs' => '1', 'sortby' => 'menutitle', 'includeTVs' => '1'));
return $result
Thanks for your help.