On Tue, Mar 24, 2009 at 6:55 AM, bradford <[email protected]> wrote:
> > Thanks Derek. I'll give this a shot when I get home. I don't quite > understand the purpose of Menu.item, then. Isn't Menu.item what you > all use to create links so that they aren't hard coded in all of the > pages? > Yes. > > What's the best practice: > > For more information about <lift:Menu.item name="foo1" />. For more > information about <lift:Menu.item name="foo2" />. > > Or > > For more information about <a href="/foo1">foo1</a>. For more > information about <a href="/foo2">foo2</a>. > The latter. This allows you to move the pages around on the filesystem without having to grep through all you source files looking for what needs to be changed. > > Or something else? > > Thanks again. > > On Mar 23, 9:43 pm, Derek Chen-Becker <[email protected]> wrote: > > That's actually the correct behavior as it's currently written for the > > Menu.item. For the Menu.group, you can provide your own template for each > > menu item that's rendered: > > > > <ul class="menu"> > > <lift:Menu.group group="foo"> > > <li><menu:bind /></li> > > </lift:Menu.group> > > </ul> > > > > I could see adding an "always" attribute to the Menu.item snippet such > that > > when it's defined the Menu item is always rendered. > > > > Derek > > > > On Mon, Mar 23, 2009 at 6:48 PM, bradford <[email protected]> wrote: > > > > > Also, I'm using 1.1-snapshot and <lift:Menu.item name="foo1" /> will > > > always show except when i am on /foo1. For this case it doesn't even > > > render. > > > > > On Mar 23, 8:41 pm, bradford <[email protected]> wrote: > > > > The idea of LocGroup is great. I have a few Menu's with LocGroup > > > > ("group1"). I want to generate: > > > > > > <ul class="menu"> > > > > <li><a href="/foo1"><span>Foo1</span></foo> > > > > <li><a href="/foo1"><span>Foo1</span></foo> > > > > <li><a href="/foo1"><span>Foo1</span></foo> > > > > </ul> > > > > > > for just group1. > > > > > > It appears that <lift:Menu.group /> does not print ul and li, and > > > > lift:Menu.builder won't recognize group. What are my alternatives? > > > > Also, I need to surround the item text with <span />. > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://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 [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 -~----------~----~----~----~------~----~------~--~---
