Look at the definition of Loc in Loc.scala And look at Entry.scala in HelloLift:
val sitemap = List(Menu(Loc("CreateEntry", List("entry"), "Create An Entry", If(User.loggedIn_? _, "Please login"))), Menu(Loc("ViewEntry", List("view"), "View An Entry", Hidden)), Menu(Loc("ViewBlog", List("blog"), "View Blog"))) On Apr 16, 8:51 am, Tobias Daub <hannes.flo...@gmx.li> wrote: > Hi Dave, > > Can you please give a short example, how to hide those List/Create > entries from the sitemap, when a user is not logged in? I already had a > glimpse at the chapter about the sitemap from the book, but I'm missing > some more detailed sample code... > > thanks > Tobias > > > > > In Boot.scala, when you're constructing the menu, put MyModel.menu > > (which returns a List[Menu]) in the list of menu items. > > > On Sun, Apr 12, 2009 at 3:16 PM, ari <arimat...@gmail.com > > <mailto:arimat...@gmail.com>> wrote: > > > I have a model defined with the CRUDify trait. I'm under the > > impression that I need to add something to the sitemap for the > > crudified pages to be available, and that defining my model with > > CRUDify should create some basic UI and addition pages for my model. > > Basically, given a model x with crudify, what do I have to do to get > > the model accessible over the web with a minimum of fuss? > > > Thanks. > > > -- > > 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 -~----------~----~----~----~------~----~------~--~---