Similar approach yes, duplicate not quite. It just utilizes that the
API provided by SiteMap, MenuItem etc. and walks through a tree
structure and build <ul>/<li> constructs.

We could make the SiteMap to be self aware of rendering itself to <ul>/
<li> constructs but personally I don't really see this as being
necessary. Nonetheless if there are compelling reasons to do so I'd
like to know them. ... I like things do be decoupled and SIteMap is
expressive enough to represent it in so many ways,

Br's,
Marius

On Mar 21, 3:51 pm, Derek Chen-Becker <[email protected]> wrote:
> Awesome! It looks like you did end up having to essentially duplicate the
> code in the builtin Menu.builder snippet method to get this working. When I
> was looking at it I thought that it might be nice to have a general way of
> making the builtin Menu snippet just render the whole tree in case anyone
> else wants to use it (for a site navigation page, etc). I was thinking that
> we could add an optional parameter that would essentially do that, then you
> could just have the snippet look like:
>
> <lift:Menu.builder expandAll="true" />
>
> Or something. I suppose it's a pretty small chunk of code, but if someone
> else wants to do something similar it means they have to copy it all over.
>
> Thoughts?
>
> Derek
>
> On Sat, Mar 21, 2009 at 3:44 AM, Marius <[email protected]> wrote:
>
> > Folks,
>
> > I just committed the menu widget. Now the Widgets test site uses this
> > widget instead of the traditional builtin menu. You can also specify
> > the style of the menu using MenuStyle.HORIZONTAL,  MenuStyle.VERTICAL
> > and  MenuStyle.NAVBAR.
>
> > All these thanks to superfish jquery plugin
> >http://users.tpg.com.au/j_birch/plugins/superfish/
>
> > Oh you can also customize the superfish plugin by specifying the JsObj
> > to set the properties.
>
> > Thoughts/suggestions ?
>
> > Br's,
> > Marius
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to