On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Exceleron Designs Reply #1, 3 years, 1 month ago
    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!