Hello,
I just updated MODx to 2.2.2pl and Wayfinder (latest current version), and, the wf.link return nothing, before, no prob, but now, nope', this is my code:
$html_output = $modx->runSnippet('wayfinder', array(
'startId' => 0,
'outerTpl' => '@CODE:<ul class="menu-deroulant" style="float:left">[[+wf.wrapper]]</ul>',
'parentRowTpl'=>'@CODE:<li><a href="/[[+wf.link]]" [[+wf.attributes]]>[[+wf.linktext]]</a>[[+wf.wrapper]]</li>',
'level'=>2,
'hereClass' => '-active',
'firstClass' => '',
'lastClass' => '',
'innerTpl' => '@CODE:<ul class="sous-menu menu-haut-[[+wf.parent]]">[[+wf.wrapper]]</ul>',
'rowTpl' => '@CODE:<li><a href="/[[+wf.link]]" test="[[+wf.docid]]">[[+wf.linktext]]</a></li>'
));
The wf.docid return the correct id of each menu (and sub-menu).
The upgrade of this modx is very hard to rewrite some fonctions, because some of modx function are now deprecated, why a 'patch' can not be writing to correct this, meanwhile is corrected by each webmaster/dev...
Aaargh !
Help me.
Olivier Bolender