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 j...@spiralarm.comwrote: 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

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 Fergusonj...@spiralarm.com wrote: Is there are reason one or

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

2010-02-04 Thread Jeppe Nejsum Madsen
Jonathan Ferguson j...@spiralarm.com 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

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 Madsenje...@ingolfs.dk wrote: Jonathan Ferguson j...@spiralarm.com 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

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

2010-02-04 Thread Jeppe Nejsum Madsen
Naftoli Gugenheim naftoli...@gmail.com writes: It's not overridable? Actually, I think it is :-) You might be able to just override lazy val listPath = Nil /Jeppe - Jeppe Nejsum Madsenje...@ingolfs.dk wrote: Jonathan Ferguson j...@spiralarm.com

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, Ill 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 je...@ingolfs.dk wrote: Naftoli Gugenheim

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 Fergusonj...@spiralarm.com wrote: I wasn't able to override listPath, Ill have a bit more of a play to

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 Fergusonj...@spiralarm.com wrote: I wasn't able to override listPath, Ill have a bit more of a play to make sure I'm not doing anything to silly; trying to get

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 naftoli...@gmail.comwrote: 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

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 naftoli...@gmail.com wrote: What does wasn't able to mean? Did you write override lazy val listPath = List(index) ? - Jonathan Fergusonj...@spiralarm.com

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 feeder.of.the.be...@gmail.comwrote: On Thu, Feb 4, 2010 at 2:58 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: What does wasn't able to mean? Did

[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