Hi,
1. I have some problems with wayfinder. If I use FURL and I have a menu with submenu then when I come to "something" menu (url something/) and when from there I click on any other menu, which is not under the "something" I get /something/blabla.html which should be just domain.com/blabla.html. And if then I clikc once more to "something" I get url like /something/something/ etc. Why?
2. I want to put active class to a href on just first node of the menu. So if I click in dropdown menu to a 3rd level item I want to add active class to the root of this items not just to the parent. Any chance to do that? SO only the first item of the menu (if have submenus or not, of course only when user is on this item) must have active class.
Thanks
Regards
-
☆ A M B ☆
- 24,524 Posts
1. You have "Friendly URL Paths" turned on. Go to System Settings and turn it off.
2. Wayfinder automatically adds an "active" class to the current resource and all of its parents. If you want a different one for just the current resource, you need to specify &selfClass=`classname` in the snippet properties. To only have the active class styled differently for the absolute top parent item, you would need to specify something like this:
ul li.active{top-level-css-here}
ul li.active ul li.active {different-css-here}
Hmm I mdont find Friendly URL Paths in system settings?
-
☆ A M B ☆
- 24,524 Posts
Which version of MODx are you using?
MODX Revolution 2.2.4-pl (traditional)