We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20751
    • 122 Posts
    Hi,

    I’ve got two menus I need to generate and I’m currently using DropMenu and DropMenu2 (a duplicate of DropMenu). For one of the menus I want the links to appear in uppercase, so I used

    strtoupper($output);


    Which works fine, but now my submenus are all uppercase too. So I figure that the $output var being returned is conflicting with both instances of DropMenu to overcome the problem I change the var $output in DropMenu2 to $outputB.

    However, the submenu is still appearing in uppercase. Any ideas? Am I wrong to use two instances of the same snippet on the same page even with mods as described?

    Any thoughts appreciated!

      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Yes. I would suggest you use the same snippet, except call the one you want to have parts of in uppercase with the div options, and use CSS to convert the top-level div to uppercase.

      http://www.quackit.com/css/properties/css_text-transform.cfm
        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
        • 20751
        • 122 Posts
        Thanks. That worked perfectly!!

        grin
          • 11413
          • 203 Posts
          If you want more control, Scotty Delicious just released an updated version of the drop menu with a lot of features to let you CSS it more deeply smiley
            Blaise Bernier

            www.medialdesign.com - Solutions for small business, hosting, design and more!
            • 20751
            • 122 Posts
            oooo . . . where do I get that from?
              • 11413
              • 203 Posts
                Blaise Bernier

                www.medialdesign.com - Solutions for small business, hosting, design and more!