How would you customize the edit view, say to allow editing all child entities on the same screen?
On Wed, Jun 24, 2009 at 2:01 PM, Jeppe Nejsum Madsen <je...@ingolfs.dk>wrote: > > On 24 Jun 2009, Peter Robinett wrote: > > > > Hi all, > > > > I'm using CRUDify on one of my models and I'd like to display some > > additional data on the view template. I believe that I need to > > override one of the model definitions with some sort of reference to > > my own XHTML file. Which one? _viewTemplate? Or perhaps the > > viewTemplate method? > > If you look at the source to CRUDify, you'll see > > def viewTemplate(): NodeSeq = pageWrapper(_viewTemplate) > > where > > def pageWrapper(body: NodeSeq): NodeSeq = > <lift:surround with="default" at="content"> > { > body > } > </lift:surround> > > def _viewTemplate = > <lift:crud.view> > <table id={viewId} class={viewClass}> > <crud:row> > <tr> > <td><crud:name/></td> > <td><crud:value/></td> > </tr> > </crud:row> > </table> > </lift:crud.view> > > So the simplest thing is to override _viewTemplate with something similar > to the above. This should be done on the companion objects where CRUDify > is mixed in.... > > /Jeppe > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---