-
MODX Staff
- 12,272 Posts
Ping me on IM when you get a chance Kyle and I’ll show you a working example. The problem lies when there are more than two levels. The here class in the "middle" levels can very easily select all the middle menu options if you’re not super-careful with your css... then again, I suppose you could put your classes on the A elements (instead of the LIs) and hang the styling off there ... hmmm...
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
I hoped that Wayfinder - as DropMenu’s replacement - would also rescue us from most of the CSS-hassle that DropMenu has caused (ul/li/here - is not the universal key!).
Apparently, this issue seems not to be resolved by Wayfinder and - even more than that - DropMenu seems to be easier to "tweak" than WayFinder. Regarding dynamic navigation: I think the ultimate MODx-approach is still missing...
-
MODX Staff
- 12,272 Posts
Wayfinder is infinitely easier to customize than DropMenu. To change Dropmenu, you have to hack the snippet code, which makes . I’d say that over 90% of requests to add X or Y to DropMenu in fact are accommodated simply by the templates in Wayfinder, making upgrades a non-issue.
In 15 minutes or less, I can have Wayfinder emulating almost any CSS-driven menu out there. It’s changed the way I build sites honestly.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
OK, than, obviously, I still have to figure out where the trick is. I studied DropMenu’s code in detail - but not WayFinder’s - my fault!
What you are trying to do and what problem you have?
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
-
MODX Staff
- 12,272 Posts
Kyle, I think we might want to look at the syntax on startId... I believe most others are startID (capitalized), and it might make sense to keep it consistent for the release. Probably should enable it to work with lowercase "d" for backwards compatibility (or heck, even internally use strtolower...).
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
Here’s a lazy question on my part because I haven’t really had a lot of time this month to spend figuring things out. Is this possible?
One thing I wanted to do with Dropmenu and couldn’t was setting a menu to appear and start only at a certain level. So rather than starting at a specific ID it would display any ID down in the tree that was at level three or deeper. This would allow you to have a sidebar menu appear when you reached that level anywhere in the site. Currently I have to use @inherit for each branch and manualy enter the start ID for each separate branch.
So an example would be that, with the snippet set into the main template, the sidebar menu would only appear once you reach the page for Pets (below) and it would display fish, dogs, cats in that menu. Even when you were viewing the fish dogs or cats pages the menu would still start at Pets.
Home
- FAQ (2)
- Pets (3)
- Fish (4)
- Dogs (4)
- Cats (4)
- Level 3
- Level 3
- Level 2
- Level 2