$docArray = $modx->getCollection('modResource',array(
'parent' => 3,
'published' => 1,
'hidemenu' => 0
));This question has been answered by sottwell. See the first response.
<?php
$array_ids = $modx->getChildIds(3, 2, array('context' => 'web',));
$docs = $modx->getCollection('modResource', array(
'id:IN' => $array_ids
,'hidemenu: =' => 1
,'pagetitle: LIKE' => '%Resources'
));
foreach ($docs as $doc) {
$output .= $doc->get('pagetitle') . '<br/>';
}
return $output;