Hmm. This isn't working. When I put <lift:Menu.item name="home" /> on the page, I get blank output, i.e. this:
<li><lift:Menu.item name="home" /></li> Becomes this: <li/> I notice that in your thread you say: "If the menu item can be displayed, an <a href="...">text</a> will be generated, otherwise a blank will be returned." What does "if the menu item can be displayed" mean? Here is the relevant portion of the site map: Menu(Loc("home", List("index"), "Home", Hidden)) Where am I going wrong? Chas. David Pollak wrote: > Make the "top of the page" sitemap elements Hidden. This means they > will not be displayed by default, but are accessible as long as the > access control rules are me. On the top bar, do <lift:Menu.item > name="about"/> etc. to display the items. For more, see > http://groups.google.com/group/liftweb/browse_thread/thread/dbdf6a17b9704c99/30f5168e87161f74?hl=en&lnk=gst&q=new+sitemap%2Fmenu+features > > <http://groups.google.com/group/liftweb/browse_thread/thread/dbdf6a17b9704c99/30f5168e87161f74?hl=en&lnk=gst&q=new+sitemap%2Fmenu+features> > > > On Sat, Sep 6, 2008 at 10:54 PM, Charles F. Munat <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > > So how would one create a site map and then break it into two or more > pieces and show those pieces on different parts of the page? > > I want one menu across the top of the page for certain pages (home, > about, contact, login, etc.), then a general navigation bar down the > left side of the page, and finally a couple of links (terms of use, > privacy policy, maybe a help link that's only visible when logged in) at > the bottom of the page. > > Is there an easy way to do this? It seems like there's only room for one > site map. > > Chas. > > Derek Chen-Becker wrote: > > Another note, you can put conditionals on whether to show menu > items via > > the If, Test and Unless clauses :) > > > > On Sat, Sep 6, 2008 at 11:09 PM, Derek Chen-Becker > > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>> wrote: > > > > Thanks, I'll add that in. You can also craft a link so that > entire > > subdirectory trees are permitted based on matching the head > of the list. > > > > Derek > > > > > > On Sat, Sep 6, 2008 at 6:57 PM, Tim Perrett > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>> > wrote: > > > > > > Oh yes of course! > > > > Ergo, the sitemap should be: > > > > val entries = SiteMap(Menu(Loc("Home", "index" :: Nil , ? > > ("Home"))), > > Menu(Loc("Authors", "authors" :: "list" > :: Nil, ? > > ("Author List"))), > > Menu(Loc("Add Author", "authors" :: > "add" :: Nil, ? > > ("Add Author"), Hidden)), > > Menu(Loc("Books", "books" :: "list" :: > Nil, ?("Book > > List"))), > > Menu(Loc("Add Book", "books" :: "add" :: > Nil, > > ?("Add > > Book"), Hidden)), > > Menu(Loc("BookSearch", "books" :: > "search" :: > > Nil, ? > > ("Book Search")))) > > > > Cheers > > > > Tim > > > > > > > > > > > > > > > > > -- > 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 -~----------~----~----~----~------~----~------~--~---