WebGUI
      Click here to register.
      
irc://irc.freenode.net#webgui

iPhoneGuy: WebGUI is a pile of crap.
rizen: If WebGUI is such a pile of crap, why do you use it?
iPhoneGuy: Because it's the best pile of crap out there.

If this is what people who hate us are saying, imagine what people who love us will say. Come join us on IRC.

ULFlexMenu - Just like a FlexMenu, but with lists

User: dpuro
Date: 8/12/2005 2:51 pm
Views: 7181
Rating: 37    Rate [
|
]

This Macro is just like a FlexMenu, but with unordered lists. I like unordered lists for hierarchical menus- they self-indent and format, and the alternating bullets help articulate hierarchies intuitively.

Install this like any custom macro- add the line:

   ULFlexMenu => ULFlexMenu, \

to your WebGUI.conf file, and put the attached .pm in your "lib/WebGUI/Macro" directory.

To format, add something like:

ul.verticalMenu{ 
  padding-left: 15px;
  margin-left: 0px;
  width: 100px;
 }

to your style sheet, along with whatever other style goodness you like.

This works with WebGUI 5.4.4, and will probably be obviated when the 6.x development track has templates extended outwards to the default Macros.



Replies

Re: How can I change the bullets
User: same guy
Date: 8/12/2005 2:51 pm
Rating: 6    Rate [
|
]
Status: Approved
Allright, no fuss, I found out how to do that, I just put it into the style sheet :-) Silly me

Error in Install description
User: andreasG
Date: 8/12/2005 2:51 pm
Rating: 22    Rate [
|
]
Status: Approved

To install this macro add the line:

ULFlexMenu => ULFlexMenu, \

(and not ULFlexMenu => ULFlexmenu, \)


Re: Error in Install description
User: dpuro
Date: 8/12/2005 2:51 pm
Rating: 19    Rate [
|
]
Status: Approved
Thanks! This is now fixed.

How can I change the bullets
User: Luri
Date: 8/12/2005 2:51 pm
Rating: 30    Rate [
|
]
Status: Approved
Hi, menu works great, but could someone tell me how can i change the bullets in front of the menu items into for example arrowheads?

As you can see I´m not an expert in programming stuff :-)

PreviousBackNext