Quote from: rthrash at Apr 10, 2007, 09:45 AM
Use a separate template without the href for the current page template.
Thank-you!
Part of my learning with MODx has been to get familiar with the terminology. Here, I needed what the Wayfinder documentation calls a template but what the MODx menus call a chunk.
Once I got past this initial hurdle, it took me only about fifteen minutes to add the chunk. For the benefit of others, here is what I did.
1. On my template (not chunk) for the web site, I changed the invocation of Wayfinder to:
[!Wayfinder?startId=`0` &level=`2` &hereTpl=`hereTpl`!]
(Note the reference to &hereTpl.)
2. On the Site->Home->Resources->Chunks tab, created a new chunk called &hereTpl with the following contents:
<li[+wf.id+][+wf.classes+]>
<span class="here_non_link" title="[+wf.title+]">[+wf.linktext+]</span>
[+wf.wrapper+]
</li>
The effect of the above is that in the menu generated by Wayfinder, the entry for the current page will be printed as non-link text, and will belong to the "here_non_link" class.
3. To my css for the web site, added a "here_non_link" class with appropriate css settings.
Works nicely.
Rahul
P.S. I think this should be Wayfinder’s default behavior, because I cannot think of many situations when the user will prefer the entry for the current page to be a link.