Hello,
Can anyone can give an example on how to use updateCMSFields?
Basically I need to add a new field to Member class. My current code:
class Client extends DataObjectDecorator {
function extraStatics() {
return array(
'db' => array(
'Phone' => 'Varchar'
)
);
}
public function updateCMSFields(FieldSet &$fields) {
$fields->addFieldToTab('Root.Main', new TextField("Phone"));
}
}
The new field (Phone) shows up fine in add/edit popup forms. But I want to display this field in summary list also.
Thanks,
Jatinder Singh Thind