Thanks Bob, as always, 'modx has an easier way to do it' ... it would up in a function like this:
/*
* getBranch
* return one one level of one branch by single id
*/
function getBranch($id){
$children = $this->modx->getChildIds($id, 1);
$children[] = $id;
$branch = array();
foreach($children as $id){
$resource = $this->modx->getObject('modResource',$id);
$templateVars = array();
$content = array();
if($resource){
$content = array(
'id' => $resource->get('id'),
'type' => $resource->get('type'),
'contentType' => $resource->get('contentType'),
'pagetitle' => $resource->get('pagetitle'),
'longtitle' => $resource->get('longtitle'),
'description' => $resource->get('description'),
'alias' => $resource->get('alias'),
'llink_attributes' => $resource->get('llink_attributes'),
'published' => $resource->get('published'),
'pub_date' => $resource->get('pub_date'),
'unpub_date' => $resource->get('unpub_date'),
'parent' => $resource->get('parent'),
'isfolder' => $resource->get('isfolder'),
'introtext' => $resource->get('introtext'),
'content' => $resource->get('content'),
'richtext' => $resource->get('richtext'),
'template' => $resource->get('template'),
'menuindex' => $resource->get('menuindex'),
'searchable' => $resource->get('searchable'),
'cacheable' => $resource->get('cacheable'),
'createdby' => $resource->get('createdby'),
'createdon' => $resource->get('createdon'),
'editedby' => $resource->get('editedby'),
'editedon' => $resource->get('editedon'),
'deleted' => $resource->get('deleted'),
'deletedon' => $resource->get('deletedon'),
'deletedby' => $resource->get('deletedby'),
'publishedon' => $resource->get('publishedon'),
'publishedby' => $resource->get('publishedby'),
'menutitle' => $resource->get('menutitle'),
'donthit' => $resource->get('donthit'),
'privateweb' => $resource->get('privateweb'),
'privatemgr' => $resource->get('privatemgr'),
'content_dispo' => $resource->get('content_dispo'),
'hidemenu' => $resource->get('hidemenu'),
'class_key' => $resource->get('class_key'),
'context_key' => $resource->get('context_key'),
'content_type' => $resource->get('content_type'),
'uri' => $resource->get('uri'),
'uri_override' => $resource->get('uri_override'),
'hide_children_in_tree' => $resource->get('hide_children_in_tree'),
'show_in_tree' => $resource->get('show_in_tree'),
'properties' => $resource->get('properties')
);
$tvs = $resource->getMany('TemplateVars');
if (!empty($tvs)) {
foreach($tvs as $tv) {
$name = $tv->get('name');
$value = $tv->getValue($id);
// if we need the value rendered:
// $value = $tv->renderOutput($id);
$templateVars[] = array($name => $value);
}
}
}
$content['template_variables'] = $templateVars;
$branch[$id] = $content;
}
return $branch;
}
is there a faster/easier way to generate that $content array?? [$modx->justGimmeTheContent->($resource);

??]