22900 Posts in 9642 Topics by 2804 members
|Go to End|
23 November 2012 at 10:33am
I have a shop, with orders. each order has a 'has_one' relation to a member, each member has notes.
In the admin, I'm trying to add a field to the 'order' page which lets the client view/edit the notes.
this works in displaying the notes on the page:
$fields->addFieldToTab("Root.Notes", new LiteralField("summary", $this->Member()->Notes, ''));
however, trying to an html field to view/edit the notes doesn't work
$fields->addFieldToTab("Root.Notes", new HTMLEditorField($this->Member()->Notes, 'Notes'));
Does anyone know a way of making this work?
|Go to Top|