// find the parent docs of the current "you-are-here" doc // used in the logic to mark parents as such also /* parent not to become "you-are-here" element while ($parentID != $siteMapRoot && $parentID != 0) { $parent = $modx->getParent($parentID, 0); if ($parent) { $parentID = $parent['id']; $activeLinkIDs[] = $parentID; } else { $parentID = 0; } } */