Hello,
I need some help for porting a wayfinder menu from modx 0.9.6.3, Wayfinder2.5beta2 with PHx to Revolution.
As far as I understand from the fine manual I should use Custom Output Filters instead of PHx. But before I start coding the snippets, I’d like to know from you whether this could be done at all?
Here’s my chunk’s code:
[+phx:if=`[[+wf.level]]`:is=`1`:then=`
<li class="top [[+wf.classnames]]"><a href="[[+wf.link]]" class="top_link">[[+wf.linktext]]</a>[[+wf.wrapper]]</li> `:else=`
<li class="[[+wf.classnames]]"><span><a href="[[+wf.link]]">[[+wf.linktext]]</a></span>
[[+wf.wrapper]]</li>
`+]
I guess I have to replace the chunk’s code with s.th. like:
[[CheckWfLevel? &level=`[[+wf.level]]`]]
which would not be a Custom Output Filter, but an ordinary snippet call.
The snippet should return the html code (see above) depending on wf.level including wf.* placeholders so wayfinder can process them furtheron.
Could you please clearify that to me - am I right to do it that way?
Cheers
Frisco