drop in parent folder document content.... to redirect to - 1st child 1st menuItem -
use:
[[firstChildMenuRederict]]
snippet:
<?php
$pid = $modx->documentIdentifier;
$firstChild = $modx->getAllChildren($id= $pid, $sort= ’menuindex’, $dir= ’ASC’, $fields= ’id, pagetitle, description, parent, alias, menutitle’);
$firstChild = $firstChild[0][’id’];
$firstChildUrl= $modx->makeUrl($firstChild);
$modx->sendRedirect($firstChildUrl);
?>
I think the standard snippet evaluates the first child by doc id, which is fine if you’ve planned ahead!