OK, this is what I have tried tonight.
So far I have been able to get documentobjects like the title displaying OK, but not my template variables. ARGH!
Any ideas any php modx gurus?
TIA
addle
<?php
$docid = isset($docid) ? $docid : "";
if(empty($docid)) return "";
$childdoc = $modx->getDocumentChildren($docid);
foreach($childdoc as $cd){
//$output = $output.$cd[’pagetitle’]."
";
$grandchild=$modx->getDocumentChildren($cd[’id’]);
$tvarlist = $modx->getDocumentChildrenTVars($cd[’id’]);
foreach($tvarlist as $tvl){
$output = $output.print_r($tvl)."
";
}
//foreach($grandchild as $gc){
//$output = $output.$gc[’pagetitle’]."
";
//$output = print_r($tvarlist);
//}
}
return $modx->parseDocumentSource($output);
?>