After a little hacking and some quick testing, I have found a solution which I like very much. Here’s what I did.
My rowTpl chunk:
<li>
<a href="[~[+wf.parent+]~]#prod_[+wf.docid+]"> [+wf.linktext+]</a>
[+wf.wrapper+]
</li>
What’s that [+wf.parent+] placeholder, you say? Well, I had to add the follow small changes to wayfinder.inc.php (version 2.0, 27 Feb 2006):
line 22:
'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.parent+]'),
line 181:
$phArray = array($useSub,$useClass,$classNames,$resource['link'],$resource['title'],$resource['linktext'],$useId,$resource['link_attributes'],
$resource['id'],$resource['introtext'],$resource['description'],$numChildren,$resource['parent']);
I haven’t done any regression testing on the mods but they seem very decoupled from the rest of the operation so I am not terribly concerned about it. Out of respect for the code writers, I had some hesitancy about the mods but I hope they will consider and advise as appropriate.