hi
can anybody give me some hints or some lines of code where I can see how to use ModelAdmin with DOM?
I have this Object:
class Network extends DataObject {
static $singular_name = "Network";
static $plural_name = "Networks";
static $db = array(
'Name' => 'Varchar',
'Class' => 'Varchar',
);
static $searchable_fields = array(
'Name'
);
static $summary_fields = array(
'Name',
'Class'
);
static $has_many = array(
'Accounts' => 'Account'
);
}
I use ModelAdmin like this:
class MyAdmin extends ModelAdmin {
public static $managed_models = array(
'Accout',
Network'
);
static $url_segment = 'Affiliatenetzwerke_und_Accounts';
static $menu_title = 'Affiliatenetzwerke & Accounts verwalten';
But now, how or where to implement the DOM, for example that I can add items over DOM interface?
daniel