The reply mode is out of order, I make a new topic.
Related post:
http://modxcms.com/forums/index.php/topic,47628.msg279646.html#msg279646
Hello,
I hacked the Wayfinder 2.3.1-pl version to add in the innerTpl the parent ID ressource.
file
core/components/wayfinder/wayfinder.class.php
Line:20
OLD CODE
public $placeHolders = array (
'wrapperLevel' => array (
'[[+wf.wrapper]]',
'[[+wf.classes]]',
'[[+wf.classnames]]'
),
'tvs' => array (),
);
NEW CODE
public $placeHolders = array (
'wrapperLevel' => array (
'[[+wf.wrapper]]',
'[[+wf.classes]]',
'[[+wf.classnames]]',
'[[+wf.parent]]'
),
'tvs' => array (),
);
Line:257/258
OLD CODE:
$phArray = array($subMenuOutput,$useClass,$classNames);
NEW CODE:
$phArray = array($subMenuOutput,$useClass,$classNames,$docInfo['parent']);
As you can see, it’s for only the parent ID ressource, you can perform and optimise this as you want.
Do not forget to make a copy of the original class file for futur update.
In my innerTpl, it’s look like :
...
'innerTpl' => '@CODE:<ul class="sous-menu menu-haut-[[+wf.parent]]">[[+wf.wrapper]]</ul>',
...
Have a good day!
Low.
Hope we can in the futur add this with a official release.