-
- 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.
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?
-
- 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?