blubb
create a new File "MyMemberExtension.php" in the folder mysite
class MyMemberExtension extends DataObjectDecorator {
/**
* Define extra database fields
*
* Return an map where the keys are db, has_one, etc, and the values are
* additional fields/relations to be defined
*/
function extraStatics() {
$fields = array(
'db' => array(
'MyExtraDBField' => 'Text'
),
'has_one' => array(
),
'defaults' => array(
'MyExtraDBField' => 'awesome default text'
)
);
return $fields;
}
function updateCMSFields(FieldSet &$fields) {
$fields->addFieldToTab('Root.Foobar', new TextField("MyExtraDBField", "My Extra DB Field"));
}
}
and then add the following line to your "mysite/_config.php"
DataObject::add_extension('Member', 'MyMemberExtension ');
i hope that is what you are searching for, and i hope it works, i kinda copied it from the Forum Module but didn't tested it
greetings <°(((-<