We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23054
    • 62 Posts
    I searched the forum but I could not find a snippet that can generate the same menu as MODx manager use ?
    Is there one published ?

    I googled for horizontal (tabbed) menus - it seems that they just work in combination with JavaScript ? Or do they work with pure CSS as well ? Although I use JavaScript I would never use it for important parts of a page because it could be turned off.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      I wrote the core for that menu; it’s pure CSS, taken from here: http://www.alistapart.com/articles/hybrid/

      The menu itself is in manager/frames/l4mnu.php, and the styling is in manager/media/style/l4navbar.css. It has been modified somewhat from the basic menu I originally wrote, but it’s not all that different.
        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
        • 23054
        • 62 Posts
        I found this code before but it works with JavaScript - inside the menu form you call JavaScript functions - therefore it is not pure CSS. What happens if the user decide to turn off JavaScript ? I think the most important parts of a web page must not rely on JavaScript turned on.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          You can do it in pure CSS; see the article I linked to.
            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
            • 28338
            • 46 Posts
            In the menu in the modx manager there are onclick javascript stuff in every a-tag. How can I make my own menu with onclick stuff in it? I can’t see an option for specifying it anywhere. I’m using dropmenu btw.
              • 22815
              • 1,097 Posts
              For the ability to add absolutely anything to each menu line, including onclick stuff, I suggest you wait for the first public beta of DropMenu’s replacement which uses chunks for different parts of the menu.

              It is also probably worth reminding everyone that the MODx Manager’s menu is not generated by a MODx snippet and that it works in frames.
                No, I don't know what OpenGeek's saying half the time either.
                MODx Documentation: The Wiki | My Wiki contributions | Main MODx Documentation
                Forum: Where to post threads about add-ons | Forum Rules
                Like MODx? donate (and/or share your resources)
                Like me? See my Amazon wishlist
                MODx "Most Promising CMS" - so appropriate!
                • 16429
                • 254 Posts
                For the html structure DropDown Menu is perfect. Is pre-installed in your MODx installation.

                For CSS
                here
                http://www.cssplay.co.uk/menus/index.html
                you can find almost any kind of menu done entirely with CSS, cross browser and validating;
                here
                http://www.cssplay.co.uk/menus/dd_valid_2.html
                there is the one that works like the manager menu, but it’s maxed (3 levels, dropdown), so you have to tailor it on your needs.

                BTW, great site for heavy CSS use.
                  kudo
                  www.kudolink.com - webdesign (surprised?)

                  [img]http://www.kudolink.com/kudolinkcom.png[/img] [sup]proudly uses[/sup] [img]http://www.kudolink.com/modx.png[/img]
                  • 28338
                  • 46 Posts
                  Quote from: PaulGregory at Aug 01, 2006, 09:23 AM

                  For the ability to add absolutely anything to each menu line, including onclick stuff, I suggest you wait for the first public beta of DropMenu’s replacement which uses chunks for different parts of the menu.

                  It is also probably worth reminding everyone that the MODx Manager’s menu is not generated by a MODx snippet and that it works in frames.

                  So when is the public beta of the DropMenu replacement gonna be released? What’s it called?

                  And I know that the managers menu is not generated by a modx snippet, I just used it as an example.
                    • 28338
                    • 46 Posts
                    Quote from: kudolink at Aug 01, 2006, 09:31 AM

                    For the html structure DropDown Menu is perfect. Is pre-installed in your MODx installation.

                    For CSS
                    here
                    http://www.cssplay.co.uk/menus/index.html
                    you can find almost any kind of menu done entirely with CSS, cross browser and validating;
                    here
                    http://www.cssplay.co.uk/menus/dd_valid_2.html
                    there is the one that works like the manager menu, but it’s maxed (3 levels, dropdown), so you have to tailor it on your needs.

                    BTW, great site for heavy CSS use.

                    As I said in my first post, I use DropMenu and it _is_ good, but it doesn’t let me specify onclick javascripts etc for the menu items. CSS is also not a problem so your links doesn’t help me much.
                      • 16429
                      • 254 Posts
                      I thought you were trying to NOT use Javascript.
                        kudo
                        www.kudolink.com - webdesign (surprised?)

                        [img]http://www.kudolink.com/kudolinkcom.png[/img] [sup]proudly uses[/sup] [img]http://www.kudolink.com/modx.png[/img]