> Can you give a short code sample how to override, please.
>

There are many examples, please take a look at the source on github.


On Apr 22, 4:00 am, Tobias Daub <hannes.flo...@gmx.li> wrote:
> Hi Dave,
>
> First, is this 1.1 version already in the repository, will maven
> automatically get it?
>
> Second, where do I have to override those methods, in the class that
> extends Mapper or in the companion object?
>
> Can you give a short code sample how to override, please.
>
> thanks.
>
>
>
> > I've added new CRUDify stuff for 1.1 (Hudson is building right now).
>
> > There are 4 methods that you can override:
> >   def showAllMenuLocParams: List[Loc.LocParam] = Nil
> >   def createMenuLocParams: List[Loc.LocParam] = Nil
> >   def viewMenuLocParams: List[Loc.LocParam] = Nil
> >   def editMenuLocParams: List[Loc.LocParam] = Nil
>
> > Just put additional LocParams in these lists (e.g., If(), Unless())
> > and you can set access control.
>
> > Thanks,
>
> > David
>
> > On Thu, Apr 16, 2009 at 5:51 AM, Tobias Daub <hannes.flo...@gmx.li
> > <mailto: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>
> >     > <mailto: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
>
> > --
> > 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