23578 Posts in 19403 Topics by 2893 members
|Go to End|
17 February 2010 at 1:20pm
I have a Designer object with a many_many connection to Regions. I edit them throught the ModelAdmin.
I have rebuilt the Regions tab for a designer with this code I found on the forum
public function getCMSFields()
$f = parent::getCMSFields();
// rebuild the regions tab
$regionsTablefield = new ManyManyComplexTableField(
array('Title' => 'Title')
This works, but only when I have done the following:
1/ Saved the Designer object and then
2/ Reloaded the designers list by pressing the tab at the top fo the ModelAdmin and
3/ Reopened my Designer object
When I try to add Regions when I first create the Designer, the Regions aren't saved. When I simply open the Designer without refreshing the list (step 2), it won't save anymore, the loading animation on the button will keep running.
16 March 2010 at 12:40am
I'm still looking in to this.
I have found out more:
2/ When I try to save a many_many relationship, I get this error: t.win.document is null, which is something to do with TinyMCE.
3/ If I try to edit after the first save, these files don't seem to want to load (although they are available):
|Go to Top|