We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • I have the following getImageList snippet call that is not working:
    [[getImageList? 
    &tvname=`resources` 
    &tpl=`resourceTpl`  
    &where=`{"crop:contains":"[[*id]]"}` ]]
    


    The crop value is created used @EVAL
    EVAL return $modx->runSnippet('getResources', array('parents'=>'0', 'showHidden'=>'1', 'tplFirst'=>'tvInputOptionsFirstTpl', 'tpl'=>'tvInputOptionsTpl', 'context'=>'web', 'limit'=>'0', 'depth'=>'4', 'sortby'=>'pagetitle', 'sortdir'=>'ASC', 'where'=>'{"template:=":7}'));


    What is happening is I am getting other values not all the values but not all the ones selected.

    The Error Log:
    (ERROR @ /public_html/core/components/migx/model/migx/migx.class.php : 2301) PHP warning: strpos() expects parameter 1 to be string, array given


    Any ideas?

    Thanks!