$output .= $modx->runSnippet('renderResources',array(
'parents' => 1905,
'resources' => 1902
));
The execution of the snippet must need a parents property. What if the resource has no parent and is in the first level under a context.
$output .= $modx->runSnippet('renderResources',array(
'parents' => '',
'resources' => 1902
));
or
$output .= $modx->runSnippet('renderResources',array(
'resources' => 1902
));
does not work.
$output .= $modx->runSnippet('renderResources',array( 'parents' => 1905, 'resources' => 1902 )); The execution of the snippet must need a parents property. What if the resource has no parent and is in the first level under a context. $output .= $modx->runSnippet('renderResources',array( 'parents' => '', 'resources' => 1902 )); or $output .= $modx->runSnippet('renderResources',array( 'resources' => 1902 )); does not work.