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

    I’m looking for a menu snippet that lets you specify a constant peace of content before and after the menu link.

    Example 1:
    [CoolMenuSnippet?pre=’-- Menu item:’ &post=’page --’] <br />which results in <br />-- Menu item: <a href="cow.html">Cow</a> page --<br /><br />Example 2:<br />[CoolMenuSnippet?pre=’

    ’ &post=’

    ’]
    which results in
    <h1><a href="cow.html">Cow</a></h1>

    Are there made any of these supersimple kinds for made for ModX? If not, do you have any guidelines for how to write one?
    • The handy-dandy, be-all, do-all, fits-all-sizes DropMenu does just that!

      [!DropMenu?startDoc=`0`&pre=`Cool Link--> `&post=` <--Don’t miss it!`!]<br /><br />although there do seem to be some limits; trying to pass anything with an = sign in it will break it.
        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
        • 3493
        • 66 Posts
        Ah, splendid! laugh
        Can it be used both horizontal and vertical though? I have two menus, see, where the top one goes vertical, and the other one goes horizontal...

        Thanks, sottwell! smiley
        • It creates a plain unordered list. Put the snippet tags in as many places as you want, and style with CSS as you please.

          Here’s an example: http://www.sottwell.com Can you see the three places I used it, each with a different startDoc argument?
            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
            • 3493
            • 66 Posts
            Ah, okay... Cool website by the way...

            But how do I specify what angle it should be displayed in though? How do I make it vertical instead of horizontal?
              • 26435
              • 1,193 Posts
              Quote from: bkvernst at Feb 28, 2006, 11:55 PM

              Ah, okay... Cool website by the way...

              But how do I specify what angle it should be displayed in though? How do I make it vertical instead of horizontal?

              You do that with CSS. There are lots of tutorials out there for styling unordered lists. This is an exceptionally good article from A List Apart. I learned most of my CSS Skills from this website.
              http://www.alistapart.com/articles/taminglists/

              later

              -sD-
              scotty Delicious
                Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                All of the above... in no specific order.


                I send pointless little messages
                • 3493
                • 66 Posts
                Thank you, Scotty! I’m learning more here than I have ever done any other place smiley

                Later, dude!