Hello.
I'm quite the noob with ss so please bear with me.
I have extended the member class using a form decorator as per this post
<?php
class ResidentMemberExt extends DataObjectDecorator {
function extraDBFields()
{
return array(
'db' => array(
'MemberType' => "Enum('Resident,Member,Associate,NonResident','Resident')",
'IsBoardMember' => "Enum('Y,N','N')",
),
);
}
public function updateCMSFields(FieldSet &$fields) {
$fields->push(new DropdownField('MemberType', 'Member Type', $this->owner->dbObject('MemberType')->enumValues()));
$fields->push(new DropdownField('IsBoardMember', 'Is a Board Member', $this->owner->dbObject('IsBoardMember')->enumValues()));
}
}
Now I want to be able to add new members using the new cms fields via the cms admin panel. How to accomplish this?