Hello,
I am using Evo 1.0.12 with the inbuilt Wayfinder 2.0.1 on a server with PHP Version 5.2.17.
I am attempting to use Wayfinder for nested breadcrumb style browser titles.
I found this very old but handy thread (
http://forums.modx.com/thread/?thread=39689) and the resulting wiki (
http://wiki.modxcms.com/index.php/Breadcrumb_navigation_with_Wayfinder) and have almost got it working.
I just need to reverse the order.
I have tried &sortOrder=`DESC` and &sortOrder=`ASC` but neither seem to make a difference.
Both &sortOrder version return:
Products - Tools - Ladders
I would like the order to be the reverse of that - eg:
Ladders - Tools - Products
The website structure is like so:
Products > Tools > Ladders
These are the wayfinder templates etc:
wayfinder call - {{titles-menu}}:
[[Wayfinder? &startId=`0` &textOfLinks=`pagetitle` &sortOrder=`DESC` &outerTpl=`titles-menu-wrapper` &rowTpl=`titles-menu-row` &activeParentRowTpl=`titles-menu-row-parent` &hereTpl=`titles-menu-here`]]
&outerTpl:
[+wf.wrapper+]
&rowTpl:
{{an empty chunk with no content}}
&activeParentRowTpl:
[+wf.linktext+] - [+wf.wrapper+]
&hereTpl:
[+wf.linktext+]
Any idea where I am going wrong?
There is also a massive amount on space in the source code - eg:
<title>
Products - Tools - Ladders
- Site name</title>
I am inserting the titles like so:
<title>[[if? &is=`[*longtitle*]:empty` &then=`{{titles-menu}} - [(site_name)]` &else=`[*longtitle*] - [(site_name)]`]]</title>
Any ideas what might be causing that extra spacing?
Thanks in advance for any help.
[ed. note: nickf08 last edited this post 10 years, 4 months ago.]