Re: [Lift] Is it possible to use CRUDify snippets on non CRUDified pages?

2010-02-08 Thread David Pollak
On Thu, Feb 4, 2010 at 3:22 PM, Jonathan Ferguson wrote: > Is there are reason one or more correct than the other? If you use the rewrite mechanism, you've got the flexibility to change the rewrite rules so that if you want something else on the /index page, it's simple logic (a guard in the par

Re: [Lift] Is it possible to use CRUDify snippets on non CRUDified pages?

2010-02-07 Thread Naftoli Gugenheim
The archetypes' Boot use List("index"), hence my guess (since I though you tried Jeppe's suggestion). Then again they use an actual index.html. In any case / maps to index, I believe. - Jonathan Ferguson wrote: Is there are reason one or more correct than th

Re: [Lift] Is it possible to use CRUDify snippets on non CRUDified pages?

2010-02-04 Thread Jonathan Ferguson
Is there are reason one or more correct than the other? Is it style or something else ? Cheers Jono On 5 February 2010 10:01, David Pollak wrote: > > > On Thu, Feb 4, 2010 at 2:58 PM, Naftoli Gugenheim wrote: > >> What does "wasn't able to" mean? >> Did you write >> override lazy val listPath

Re: [Lift] Is it possible to use CRUDify snippets on non CRUDified pages?

2010-02-04 Thread Jonathan Ferguson
I may have had override lazy val listPath = List("/") On 5 February 2010 09:58, Naftoli Gugenheim wrote: > What does "wasn't able to" mean? > Did you write > override lazy val listPath = List("index") > ? > > - > Jonathan Ferguson wrote: > > I wasn't able to

Re: [Lift] Is it possible to use CRUDify snippets on non CRUDified pages?

2010-02-04 Thread David Pollak
On Thu, Feb 4, 2010 at 2:58 PM, Naftoli Gugenheim wrote: > What does "wasn't able to" mean? > Did you write > override lazy val listPath = List("index") > This is the wrong answer. Jeppe gave the correct answer. > ? > > - > Jonathan Ferguson wrote: > > I was

Re: [Lift] Is it possible to use CRUDify snippets on non CRUDified pages?

2010-02-04 Thread Naftoli Gugenheim
What does "wasn't able to" mean? Did you write override lazy val listPath = List("index") ? - Jonathan Ferguson wrote: I wasn't able to override listPath, I"ll have a bit more of a play to make sure I'm not doing anything to silly; trying to get /crudify/path t

Re: [Lift] Is it possible to use CRUDify snippets on non CRUDified pages?

2010-02-04 Thread Naftoli Gugenheim
What about "index" :: Nil ? Also worst case scenario you could have a snippet that returns MyEntity.showAllTemplate() embedded in your index.html. - Jonathan Ferguson wrote: I wasn't able to override listPath, I"ll have a bit more of a play to make sure I'm n

Re: [Lift] Is it possible to use CRUDify snippets on non CRUDified pages?

2010-02-04 Thread Jonathan Ferguson
I wasn't able to override listPath, I"ll have a bit more of a play to make sure I'm not doing anything to silly; trying to get /crudify/path to / . Rewrite worked wonderfully. Cheers Jono On 5 February 2010 04:45, Jeppe Nejsum Madsen wrote: > Naftoli Gugenheim writes: > > > It's not overridab

Re: [Lift] Is it possible to use CRUDify snippets on non CRUDified pages?

2010-02-04 Thread Jeppe Nejsum Madsen
Naftoli Gugenheim writes: > It's not overridable? Actually, I think it is :-) You might be able to just override lazy val listPath = Nil /Jeppe > > - > Jeppe Nejsum Madsen wrote: > > Jonathan Ferguson writes: > >> I would like to have the list view of on

Re: [Lift] Is it possible to use CRUDify snippets on non CRUDified pages?

2010-02-04 Thread Naftoli Gugenheim
It's not overridable? - Jeppe Nejsum Madsen wrote: Jonathan Ferguson writes: > I would like to have the list view of one of my model objects as my home > page. > > Can this done with out having the home page redirect to /mymodel/list ? I don't think you can

Re: [Lift] Is it possible to use CRUDify snippets on non CRUDified pages?

2010-02-04 Thread Jeppe Nejsum Madsen
Jonathan Ferguson writes: > I would like to have the list view of one of my model objects as my home > page. > > Can this done with out having the home page redirect to /mymodel/list ? I don't think you can change the native URL of CRUDify list, but you could add a rewrite (not redirect). See h

[Lift] Is it possible to use CRUDify snippets on non CRUDified pages?

2010-02-03 Thread Jonathan Ferguson
I would like to have the list view of one of my model objects as my home page. Can this done with out having the home page redirect to /mymodel/list ? Cheers Jono -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to li