Feel free to take it when we let you ;).

On Thu, Mar 19, 2009 at 1:16 PM, marius d. <marius.dan...@gmail.com> wrote:

>
> Derek let me know if you want to own this ... otherwise I'll take it
> if no one else claims it ... after I'm added to the "magic" owner list
> on lighthouse :D
>
> On Mar 19, 7:04 pm, Derek Chen-Becker <dchenbec...@gmail.com> wrote:
> > Added a ticket for the enhancement:
> >
> > http://liftweb.lighthouseapp.com/projects/26102/tickets/24-create-lif...
> >
> > Derek
> >
> > On Thu, Mar 19, 2009 at 11:59 AM, Derek Chen-Becker
> > <dchenbec...@gmail.com>wrote:
> >
> > > Cool! If Dan can share some code that would help, but in any case I
> don't
> > > think this is going to be a huge chunk of code.
> >
> > > Derek
> >
> > > On Thu, Mar 19, 2009 at 11:52 AM, David Pollak <
> > > feeder.of.the.be...@gmail.com> wrote:
> >
> > >> On Thu, Mar 19, 2009 at 9:50 AM, marius d. <marius.dan...@gmail.com
> >wrote:
> >
> > >>> I'm wondering if we shouldn't provide this by the means of a Lift
> > >>> widget. Looks like a needed feature ...
> >
> > >>> WDYT ?
> >
> > >> Sounds good to me.
> >
> > >>> Br's,
> > >>> Marius
> >
> > >>> On Mar 19, 6:43 pm, David Pollak <feeder.of.the.be...@gmail.com>
> > >>> wrote:
> > >>> > On Thu, Mar 19, 2009 at 9:30 AM, Derek Chen-Becker <
> > >>> dchenbec...@gmail.com>wrote:
> >
> > >>> > > This is something that has been asked before, but I don't think
> there
> > >>> was
> > >>> > > anything out there. I think that this would be a really nice
> feature,
> > >>> > > particularly if it could leverage the existing jQuery stuff.
>  IIRC,
> > >>> the
> > >>> > > built-in Menu snippet doesn't render children at all unless the
> > >>> parent is
> > >>> > > the current selected page, so we would have to either modify that
> or
> > >>> we
> > >>> > > could code up a new MenuBar snippet that renders a "bar" instead
> of a
> > >>> UL
> > >>> > > like the current one.
> >
> > >>> > There's a way to ask for the entire menu rather than just the
> current
> > >>> view.
> > >>> >  Dan O'Leary from Enthiosys did this for Innovation Games Online.
>  I've
> > >>> > pinged him to see if he can share some of the code.
> >
> > >>> > > Derek
> >
> > >>> > > On Thu, Mar 19, 2009 at 10:21 AM, DavidV <
> david.v.villa...@gmail.com
> > >>> >wrote:
> >
> > >>> > >> I'm wondering if there is a built-in way to create drop-down
> menus
> > >>> > >> from a horizontal navbar using the Menu.builder method. These
> are
> > >>> the
> > >>> > >> relevant sections of my current template:
> >
> > >>> > >>    <title>My Title<lift:Menu.title /> </title>
> > >>> > >>    <lift:StyleSheet.entryForm />
> > >>> > >>    <lift:StyleSheet.fancyType />
> > >>> > >>    <script id="jquery" src="/classpath/jquery.js" type="text/
> > >>> > >> javascript"/>
> > >>> > >>    <script id="json" src="/classpath/json.js"
> > >>> type="text/javascript"/
> >
> > >>> > >>    <style>
> >
> > >>> > >>  /* <![CDATA[ */
> > >>> > >> #navbar ul {
> > >>> > >>    margin: 0;
> > >>> > >>    padding: 2px;
> > >>> > >>    list-style-type: none;
> > >>> > >>    font-weight: bold;
> > >>> > >>    text-align: center;
> > >>> > >>    background-color: #C3D9FF;
> > >>> > >>    }
> >
> > >>> > >> #navbar ul li {
> > >>> > >>    display: inline;
> > >>> > >>    }
> >
> > >>> > >> #navbar ul li a {
> > >>> > >>    text-decoration: none;
> > >>> > >>    padding: .2em 1em;
> > >>> > >>    color: #000;
> > >>> > >>    }
> >
> > >>> > >> #navbar ul li a:hover {
> > >>> > >>    color: #fff;
> > >>> > >>    background-color: #000;
> > >>> > >>    }
> >
> > >>> > >>  /* ]]> */
> >
> > >>> > >>                </style>
> > >>> > >>        </head>
> > >>> > >>        <body>
> >
> > >>> > >>    <div class="container">
> > >>> > >>      <div style="text-align: center">
> > >>> > >>      <br/>
> > >>> > >>        <h1 class="alt">
> > >>> > >>          Welcome to the Genomas DNA Banking Database </h1>
> > >>> > >>     </div>
> > >>> > >>      <hr/>
> >
> > >>> > >>          <div id="navbar">
> > >>> > >>              <ul>
> > >>> > >>                <lift:Menu.builder />
> > >>> > >>              </ul>
> > >>> > >>          </div>
> >
> > >>> > >>          <div class="column span-24 last">
> > >>> > >>        <lift:bind name="content" />
> > >>> > >>    </div>
> >
> > >>> > >> I have a couple links on my navbar that have sub-menu links.  I
> have
> > >>> > >> constructed them in my Boot.scala file like this:
> > >>> > >>      List(Menu(Loc("SampleLogging", List("samples",
> "samplelogs"),
> > >>> > >> "Browse Sample Logging"),
> > >>> > >>           Menu(Loc("Individuals", List("individual",
> "individual"),
> > >>> > >> "Patient Demographics")),
> > >>> > >>           Menu(Loc("Requisition", List("requisition",
> > >>> "requisition"),
> > >>> > >> "Requisitions")),
> > >>> > >>           Menu(Loc("Samples2", List("samples", "samples"),
> > >>> > >> "Samples")))) :::
> > >>> > >>      List(Menu(Loc("EditSamp", List("samples", "edit"), "Edit",
> > >>> > >> Hidden))) :::
> >
> > >>> > >> ...and so on.
> >
> > >>> > >> I would like to use some built-in tools to be able to make these
> > >>> sub-
> > >>> > >> menu items drop downs from the "parent" menu item without having
> to
> > >>> > >> build an entirely new complex table-based template.  Does anyone
> > >>> know
> > >>> > >> of a way to accomplish this?
> >
> > >>> > >> Thanks,
> > >>> > >> David
> >
> > >>> > --
> > >>> > Lift, the simply functional web frameworkhttp://liftweb.net
> > >>> > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > >>> > Follow me:http://twitter.com/dpp
> > >>> > Git some:http://github.com/dpp
> >
> > >> --
> > >> Lift, the simply functional web frameworkhttp://liftweb.net
> > >> Beginning Scalahttp://www.apress.com/book/view/1430219890
> >
> > >> 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 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to