We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25663 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
      • 27226
      • 186 Posts
      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...
        • 25663 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
          • 27226
          • 186 Posts
          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!
            • 7923
            • 4,213 Posts
            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."
              • 27226
              • 186 Posts
              Quote from: doze at Aug 16, 2006, 03:55 PM

              What you are trying to do and what problem you have?
              My first problem was to provide a distinct css-class/id for the page I’m currently on ("here" was applied to many others than just the current/actual page). My second problem was to create a "breadcrumb" - without being "hered" by inbetween-pages/levels (I guess that’s the actual issue of Ryan with WayFinder) Solved that (more or less), by tweaking DropMenu, and some CSS-work. And now, to be honest - I’m not so eager to go that way from the very beginning again, for WayFinder. I’m sure WayFinder is a progress, so no critizism from my side!, but my expectations were to not to have to deal with this problems again, esp. with the mismatch of CSS and MODx-tree/parent-structures. I’ll just have to take a closer look to WayFinder and the differences to DropMenu.
              Right now, I’ll stick with DropMenu. Not because it’s better (it’s probably NOT better), but because I know it already... rolleyes
                • 25663 MODX Staff
                • 12,272 Posts
                Definitely go with what you know! laugh

                Wayfinder can set a class for not only the "you are here" tree structure, but also the "this is the actual page you’re on".

                And the code for Wayfinder is 10x prettier and easy to follow than Dropmenu, FYI. Mainly cause I had a lot less to do with the implementation of it. tongue
                  Ryan Thrash, MODX Co-Founder
                  Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                  • 27226
                  • 186 Posts
                  Quote from: rthrash at Aug 16, 2006, 04:18 PM

                  And the code for Wayfinder is 10x prettier and easy to follow than Dropmenu, FYI. Mainly cause I had a lot less to do with the implementation of it. tongue
                  wink
                  OK, since there is no advice I’d be more confident on than Yours: I’ll take some time to look at the WayFinder’s code.
                  It all boils down to be up to date, doesn’t it? ... wink
                    • 25663 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
                      • 13736
                      • 345 Posts
                      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


                      This discussion is closed to further replies. Keep calm and carry on.