take a look of this
http://rtfm.modx.com/display/revolution20/Snippets (
especially "Example DB Code")
$c = $modx->newQuery('modResource');
$c->where(array(
'parent:IN' => array(12),
'deleted' => false,
'hidemenu' => false,
'published' => true,
));
$c->sortby('menuindex','ASC');
$c->limit(10);
[b]$resources[/b] = $modx->getCollection('modResource',$c);
how can i get titles,descriptions,content, TV from that $resources? when i use foreach to print only 1 loops, its just returning damned XPDOObject instead 4 documents inside resource ID 12.
n.b: for the future docs example, please provide output too, not all users love to spend all time for just finding outputs, thanx