@ottogal: I caught that as I was pasting the code in, thanks.
I got it! I changed a few lines in wayfinder.inc.php and it is all working now. I had to use categoryFoldersTpl for the template instead of defining a new template, because I wasn’t sure where the templates are defined and couldn’t find them, but it is okay, because that site isn’t using the categoryFoldersTpl at all. Here is the code (replaces lines 149-150):
if ($this->_config['displayStart'] && $resource['level'] == 0 && $resource['id'] != $modx->documentObject['id']) {
$usedTemplate = 'startItemTpl';
} elseif ($this->_config['displayStart'] && $resource['id'] == $modx->documentObject['id'] && $this->_templates['categoryFoldersTpl']) {
$usedTemplate = 'categoryFoldersTpl';
}
The first if adds one additional piece of logic:
&& $resource['id'] != $modx->documentObject['id']
and the next elseif is totally new, giving a template to startItem when it is the current document.
Thanks for the help, it got me hunting in the right direction.