Hey guys,
if I upload an image in silverstripe 3, I can click on "edit" and get information (imageresolution, etc.) over the image and can change the title.
If I modify the class to this:
class PushboxResource extends Image{
static $db = array (
'Variable1' => 'Varchar(255)'
);
public static $many_many = array(
"myclass" => "myclass"
);
public function getCMSFields() {
$fields = new FieldList();
$fields->push(new TextField('Variable1'));
return $fields;
}
}
I can add an extra field to the image, but if I do it this way, all the extra information over the image are lost and I only get my textfield.
Is there an nice way to add an extra field to the image parameter without blowing the nice extra information away?