We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 43356
    • 10 Posts
    I have an existing MODx site - Revolution 2.1.3-pl (traditional) - and I need to create a dropdown menu. The existing site doesn't have the capability.
    Is there anything in the MODx's tools, or an add-on, that will let me do this relatively easily?
      • 37042
      • 384 Posts
      Are you using Wayfinder for your existing menu? Have a google for Wayfinder drop down menu. There are a few examples on the authors website.
        ...
        • 43356
        • 10 Posts
        Yes I am, thanks - I'll do that.
          • 37105
          • 194 Posts
          @charcoaldesign: still active topic?
            Codeplaza Webdesign: for professional websites at low cost
            • 43356
            • 10 Posts
            Quote from: donquicky at Jul 04, 2013, 05:06 PM
            @charcoaldesign: still active topic?

            I've had to resort to a css menu (with manual set up so voiding the modx menu) until I do some study on Wayfinder etc.
            Any good tutorials welcome on setting up a dropdown menu - I've found some old ones online but they seemed out of date or incomplete.
              • 37105
              • 194 Posts
              I would still use Wayfinder to generate the navigation HTML and finish the menu with JQuery. Wayfinder is easy to learn and produces the right HTML needed.

              Take a loot at: http://makotokw.github.io/jquery/ui_potato_menu/
                Codeplaza Webdesign: for professional websites at low cost
                • 43356
                • 10 Posts
                Thanks a lot for that. I'll try to apply it. Nice slick menu style.
                I just need to get up to speed with Wayfinder among other things - I've only started with modx editing a client's site someone else built, but I really like it and want to use it for new site projects.
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                    • 10208 ☆ A M B ☆
                    • 1,780 Posts
                    Wayfinder works great with css dropdown menus. No need to use a static menu with Wayfinder at all. Susan's link will help, but basically all you need to do is build your css for the menu, and tell Wayfinder to use the id's and classes.

                    Something like this:

                    Wrap Wayfinder with your nav id or class:
                    <nav id="main_nav">[[Wayfinder? &startId=`0` &level=`0` &rowTpl=`rowTpl` &innerTpl=`innerTpl` &hideSubMenu=`0`]]</nav>


                    Standard Wayfinder rowTpl chunk:
                    <!-- rowTpl -->
                    <li[[+wf.id]] class="[[+wf.classnames]]">
                    <a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]]>[[+wf.linktext]]</a>
                    [[+wf.wrapper]]
                    </li>
                    

                    Set your dropdown class in this innerTpl chunk:

                    <!-- innerTpl -->
                    <ul class="sublist [[+wf.classnames]]">
                    [[+wf.wrapper]]
                    </ul>
                      Frogabog- MODX Websites in Portland Oregon
                      "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
                      Having server issues? These guys have MODX Hosting perfected - SkyToaster
                      • 43356
                      • 10 Posts
                      Awesome, thanks Susan & Kori! I'll give it a shot.