Hello,
Imagine that you have a DataObject called Product with some data defined for it:
class Product extends DataObject {
//db fields
static $db = array(
'Name' => 'Varchar',
'Description' => 'Text',
//'etc
);
I need to define a set of Features for each Products:
class Feature extends DataObject {
//db fields
static $db = array(
'f1' => 'Varchar',
'f2' => 'Text',
//'etc
);
Assuming Features can not be created before creating a Product itself,
how can I create a Product and its Features, inside the Products popup (i.e. assign the Main tab for product fields and create a new tab for Features).
Thank you very much.