I am trying to get the one level children using getDocumentChildren. It displays all the children but it also shows all the children’s children. I just want one level.
<?php
$childs = $modx->getDocumentChildren(114);
foreach($childs as $row){
echo ’<li><a href="[~’.$row[’id’].’~]">’.$row[’pagetitle’].’</a></li>’;
}
?>