On Thu, Oct 16, 2008 at 8:23 PM, efleming969 <[EMAIL PROTECTED]> wrote:

>
> Was anything like this every implemented?


Yes.

>
>
> On Sep 22, 12:18 pm, "David Pollak" <[EMAIL PROTECTED]>
> wrote:
> > On Sun, Sep 21, 2008 at 5:21 PM, Charles F. Munat <[EMAIL PROTECTED]>
> wrote:
> >
> >
> >
> >
> >
> > > It would be useful to me to be able to reuse the Menu.builder function
> > > to build different menus, thus:
> >
> > > <lift:Menu.builder name="global"/>
> >
> > > <lift:Menu.builder name="admin"/>
> >
> > > <lift:Menu.builder name="legal"/>
> >
> > > I'm wondering if it would work to extend LocStuff to include a LinkType
> > > list:
> >
> > > case class LinkType(types: List[String]) extends LocStuff
> >
> > > Then in the SiteMap:
> >
> > > Menu(Loc("home", List("index"), "Home",
> > >   LinkType(List("global")))) ::
> >
> > > Menu(Loc("users", List("users", "index"), "Users",
> > >   LinkType(List("admin")))) ::
> >
> > > Menu(Loc("privacy_policy", List("privacy", "index"), "Privacy Policy",
> > >   LinkType(List("legal")))) ::
> >
> > > Menu(Loc("sitempa", List("sitemap", "index"), "Site Map",
> > >   LinkType(List("admin", "legal")))) ::
> >
> > > Nil
> >
> > > The the builder function in the built-in Menu snippet could be altered
> > > to take a name parameter that build a menu including only those Loc
> that
> > > had an associated LinkType parameter.
> >
> > > There is probably a better way, but this is the best I can think of at
> > > the moment.
> >
> > > Would anyone else find this useful?
> >
> > Yeah... good idea.
> >
> >
> >
> > > Chas.
> >
> > --
> > Lift, the simply functional web frameworkhttp://liftweb.net
> > Collaborative Task Managementhttp://much4.us
> > Follow me:http://twitter.com/dpp
> > Git some:http://github.com/dpp
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Collaborative Task Management http://much4.us
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
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