Almost there. I used the above tip (using doc id’s to make custom class names for each list item), but face a small challenge to complete it--getting it to work with "active" feature in Wayfinder. First, was the fact that I had an "a class" defined within each LI like this:
<ul id="main-nav">
<li><a class="id9" href="/contact.html" title="Contact">Contact</a></li>
<li><a class="id12" href="/faq.html" title="Frequently Asked Questions">Frequently Asked Questions</a></li>
</ul>
So far, so good. Then I want to use the &hereClass setting to attempt to keep the button highlighted for the current page.
[[Wayfinder? &startId=`44` &level=`3` &outerTpl=`top-menu-outer` &rowTpl=`top-menu` &hereClass=`active`]]
But of course since I am using my own class already, I couldnt figure out how to get the two to merge like this (i believe this is how CSS should be done:
Putting in the &hereClass does not seem to do anything (the class="active" does not get generated at all) since I have my own class defined already. So, plan B was to try to use ID’s instead of CLASS’s. But it basically doesn’t work at all (at least in Firefox) since this is probably outside CSS’s specs, I am guess...
E.g.
<ul id="main-nav">
<li><a id="id12" class="active" href="/faq.html" title="Frequently Asked Questions">Frequently Asked Questions</a></li>
</ul>
I am not a ModX, nor CSS pro by any means. I hired a company to create my CSS+HTML, so I have been doing what I can to integrate into Modx. It is also a volunteer job, so I am limited to forums for help. I appreciate any and all help offered. I am guessing there is a simple way to fix this using some other technique that I am unaware of.
- thanks in advance