Hey guys,
I've had a look around the codebase to figure out how to get extraFields working but I have to say I'm stumped.
My current getCMSFields GridField setup is:
$gfConfig = GridFieldConfig_RelationEditor::create();
$amenityList = $this->Amenities();
$amField = new GridField('Amenities', null, $amenityList, $gfConfig);
The Amenity getCMSFields is:
function getCMSFields() {
return new FieldList(
new TextField('Title', 'Name of amenity', null, 40),
new TextField('TravelTime', 'Travel time to get there', null, 40)
);
}
For TravelTime, I've tried various constructs like ParentPage.TravelTime etc, but no luck.
Has anyone done this before?