I have a facility CMS page that displays in a GridField campus a facility is located at the name of the facility and the description/media associated with that facility.
A facility has_one campus and stores its own description and name.
it has three summary_fields: campus title, facility title, facility description
public static $db = array(
'Title' => 'Varchar',
'Description' => 'HTMLText'
);
static $has_one = array(
'Facilities' => 'FacilitiesHolder',
'Campus' => 'CampusPage'
);
static $has_many = array(
'Images' => 'Gallery'
);
static $many_many = array(
'Courses' => 'CourseCategoryPage',
);
public static $summary_fields = array(
'Campus.Title' => 'Campuses',
'Title' => 'Title',
'Description' => 'Description'
);
on the CMS side the gridfield is sortable by facility title and descirption but NOT campus I need a way to sort by campus as well.
Any suggestions would be greatly appreciated