Good news everyone! During my development travails, I’ve created an updated version of Wayfinder that fixes two issues and adds two handy new features!
Fixes
I’ve incorporated this fix which makes the hereClass work properly with weblinks in the menu and I’ve fixed the SQL query to work around the MySQL 5.0.51 sorting bug.
New Features
lastRowTpl
I’ve also added a new parameter called lastRowTpl which allows you specify a chunk to be used for the last menu item output. It works the same way as all the other wayfinder tpl’s and defaults to using rowTpl is it isn’t specified.
It’s very useful for little menu’s that currently look like this if you do them with Wayfinder:
item1 | item2 | item3 | lastitem |
and should look like this:
item1 | item2 | item3 | lastitem
Odd & Even classes
Finally, I’ve added support for even & odd classes on rows. These work like all the other wayfinder classes – you specify a class name in the parameter and this will be added to the wf.classes placeholder. These ones are only output on the appropriate rows, though – and you don’t have to specify both if you don’t want to – it’ll still work with just one.
These are really useful for menu’s which are supposed to be stripey, with every other item a different colour.
To implement this, I’ve modified both Wayfinder files. You can download the new versions from here (.zip) or here (.tar.gz).
I’m using these on live sites, because I’m a crazy fool, but if we can get some more testing from everyone, maybe this can be added to the repository as a new version and maybe then into the main MODx distribution, so that everyone can share the love.
What do you think – let me know in the MODx forum thread.


Another pretty sizeable release, despite the small version increment. There are over 100 changes but my personal highlights from the 