We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31471
    • 206 Posts
    I put this code in the ’Input Options Values’ field of a TV (Input Type Listbox):
    @EVAL return $modx->runSnippet('getResources',array('parents'=>'48','tpl'=>'@INLINE ||[[+pagetitle]]','sortby'=>'menuindex','sortdir'=>'ASC','limit'=>'0'));

    but it doesn’t return anything to the resources’ TV input.

    Then I created a chunk "pagetitles" with this code:
    [[!getResources?parents=`48` &tpl=`@INLINE ||[[+pagetitle]]` &sortby=`menuindex` &sortdir=`ASC` &limit=`0`]]

    and changed the TV’s ’Input Options Values’ field to @CHUNK pagetitles, with no return; also tried [[$pagetitles]] tag, still nothing.

    However, if I put [[$pagetitles]] tag in a web resource, it returns the delimited list of pagetitles like I need it.

    What am I doing wrong? huh