Hi, instead of the getCMSFields function, try this :
function getCustomFields() {
$fields = new FieldList();
$fields->push(new TextField('Variable1'));
return $fields;
}
Posted to: Add extra field to image object | Show Thread | Post Reply