-
☆ A M B ☆
- 24,524 Posts
That’s because the page you get when a weblink is selected is not the actual weblink document; rather it’s the document the weblink points to.
Is there anyway around it or an easy way to get it to work?
A friend solved it by adding an id for each element pertaining to its page number and setting a template variable to add some extra css just on the front page to set the link to be active...
it makes sense to me...
Hey, I know it is a very old post, but I would like to tell everyone over here that it was very useful for me. I went through all the answers and it is highly appreciable that such help are provided over here. I would definitely come here if I get a problem.
Life
I solved this in MODx Revolution 2.0.8-pl without hacking the Wayfinder code or adding custom css.
Basically by using two additional snippets: If and getResourceField, I’m able to check the weblink content and compare it to the current documents URL... when the two match the class of "current" is added to the weblink menu item.
Full details posted here:
http://modxcms.com/forums/index.php/topic,62431.msg354718.html#msg354718
Environment:
modx: rev 2.0.8-pl
localhost: Apache/2.0.63 (Unix) PHP/5.2.11 DAV/2, MySQL client version: 5.1.37