I partly solved this problem so that Wayfinder prints a menu like this:
1. Parent Container Name
1. Child Page Name
2. Child Page Name
3. Child Page Name
To do this, I logged into my Linux server as root and made a backup of the wayfinder php include file:
# cd (modx_base_path)/assets/snippets/wayfinder
# cp wayfinder.inc.php wayfinder.inc.php.bak
Confirmed the contents of the backup file. Then add two items to respective lines in file wayfinder.inc.php:
’[+wf.menuindex+]’
'rowLevel' => array('[+wf.wrapper+]','[+wf.classes+]','[+wf.classnames+]','[+wf.link+]','[+wf.title+]','[+wf.linktext+]','[+wf.id+]','[+wf.attributes+]','[+wf.docid+]','[+wf.introtext+]', '[+wf.description+]','[+wf.subitemcount+]','[+wf.menuindex+]'),
$resource[’menuindex’]
$phArray = array($useSub,$useClass,$classNames,$resource['link'],$resource['title'],$resource['linktext'],$useId,$resource['link_attributes'],$resource['id'],$resource['introtext'],$resource['description'],$numChildren,$resource['menuindex']);
Make sure the new items are inserted as the last item in the arrays with proper syntax. The Wayfinder tag [+wf.menuindex+] becomes available in Wayfinder templates to print the menuindex at each level.
The parent’s menuindex is not part of the Document Object Model so the php code to make this a wayfinder tag would be more involved.