Hello everyone.
I have some troubles with "possible TV values".
I have a drop-down box in wich I want to have [[+pagetitle]]==[[+id]]||(in chunk i have this code)
I’m trying to run getResources.
My code in TV :
@EVAL
$params['parents']='6';
$params['depth']='0';
$params['tpl']='roomstournirs';
$params['limit']='500';
$output= $modx->runSnippet("getResources", $params);
return $output;
If just run in chunk
[[!getResources ? &parents=`6` &depth=`0` &tpl=`roomstournirs`]]
I will get something like this :
test5==22|| test==18|| test2==19|| test3==20|| test4==21||
Params are transferring and $output is working, i have tested it with :
@EVAL
$params['asd']='asd';
$params['qwe']='qwe';
$output= $modx->runSnippet("test", $params);
return $output;
in test i have this code, and it works :
return $qwe."||test||".$asd;
So, can anybody tell me why getResources in @EVAL isn’t working and how to solve this problem.