Thanks for your patience as I try to explain this.
Nuts. I was going to attach a screenshot but cant'. I'll paste here. It very closely exactly like what is below. Notice Firstname and Last name are not columns like the example documents for data object manager, they are crammed together in a single column. I am trying to get this to display in a nice columar layout. But it is all squeezed together and does not appear to be using a theme.
_____________________________________________________________
Add An Individual
Displaying 1 to 10 of 49
*
First Name
Last Name
deselect all
*
Jeb
Furious Edit Delete
*
Zeb
Allman Edit Delete
*
Patricia
Allman Edit Delete
*
Mike
Allman Edit Delete
*
Show
results per page
_______________________________________________________________________
Here's the code:
class Family extends DataObject {
...
function getCMSFields() {
$fields=parent::getCMSFields();
$fields->renamefield('Name', _t('Family.SURNAME'));
$fields->renamefield('City',_t('Family.CITY'));
$fields->renamefield('StateProvince',_t('Family.STATEPROVINCE'));
$fields->renamefield('Postalcode',_t('Family.POSTALCODE'));
$tablefield = new HasManyDataObjectManager(
$this,
'Individuals',
'Individual',
array(
'FirstName' => 'FirstName',
'LastName' => 'LastName'
),'getCMSFields_forPopup');
$tablefield->setAddTitle( 'An Individual' );
$fields->addFieldToTab( 'Root.Individuals', $tablefield );
return $fields;
}
...
}