Hi Susan,
thanks, I was trying to set up a similar scheme to ’idiotic.marc’. The @INHERIT method you suggested was very useful and easy to implement.
I’d like to go a small step further and make the ’current category’ a link, so when users browse child pages they can easily get make to the directory index.
So far I have successfully constructed a peer navigation using Wayfinder and a TV call like this:
<div class="peerNavigation">
<h2><a href="[[UltimateParent]]" title="Return to this section's index page.">[*dirIndexTV*]</a></h2>
[[Wayfinder?startId=`[*parent*]` &level=`1`]]
</div>
As you can see, I’ve used UltimateParent to generate the link for the directory index. While this works, it only gives me the numeric ID for the page and not its alias. Could anybody suggest how I might retrieve the alias (and I guess the friendly URL suffix too) from MODx to generate a meaningful URL?
I’d also like to find a way to craft a conditional statement, so I can turn off the link to the directory index if the user is already on that page.
Thanks for any pointers any might be able to provide.