<?php
$currentID = $modx->documentIdentifier;
$children = $modx->getDocumentChildren($currentID);
if (!empty($children)) {
foreach($children as $child) {
$output .= $child['pagetitle'];
$output .= "<br />";
}
return $output;
}
?>Overview Admission Departments Courses Advising Careers Financing
<?php
$currentID = $modx->documentIdentifier;
$children = $modx->getDocumentChildren($currentID);
if (!empty($children)) {
foreach($children as $child) {
$output .= $child['pagetitle'];
$output .= "<br />";
if ($child['pagetitle']=="Departments"){
$output .= $child['id'];
}
}
return $output;
}
?>
<?php
$currentID = $modx->documentIdentifier;
$children = $modx->getDocumentChildren($currentID);
if (!empty($children)) {
foreach($children as $child) {
$grandChildren = $modx->getDocumentChildren($child['id']);
foreach($grandChildren as $grandChild) {
$output .= $grandChild['pagetitle'];
$greatgrandChildren = $modx->getDocumentChildren($grandChild['id']);
if ($greatgrandChildren['pagetitle']=="Programs & Majors"){
$output .= $greatgrandChildren['id'];
}
}
}
return $output;
}
?>
<?php
$currentID = $modx->documentIdentifier;
$children = $modx->getDocumentChildren($currentID);
if (!empty($children)) {
foreach($children as $child) {
if ($child['pagetitle']=="Departments") {
$output_one = $child['id'];
$grandchildren = $modx->getDocumentChildren($output_one);
if (!empty($grandchildren)) {
foreach($grandchildren as $grandchild) {
if ($grandchild['pagetitle']=="Aerospace Engineering") {
$output_two = $grandchild['id'];
$greatgrandchildren = $modx->getDocumentChildren($output_two);
if (!empty($greatgrandchildren)) {
foreach($greatgrandchildren as $greatgrandchild) {
if ($greatgrandchild['pagetitle']=="Programs & Majors") {
$output_three = $greatgrandchild['id'];
}
}
}
}
}
}
}
}
return $output_three;
}
?>
if ($grandchild['pagetitle']=="Aerospace Engineering") {
if ($grandchild['pagetitle']=="Aerospace Engineering") {