Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Overriding a textfield is pretty basic
static $searchable_fields = array(
"Title" => array(
"field" => "TextField",
"filter" => "PartialMatchFilter",
"title" => 'Caller Name'
In Order to override the design of a Dropdown field, I placed
"Destinations.ID" => array(
"filter" => "ExactMatchFilter",
"title" => 'Destination'
By removing the field in the array.
Is there a sort that I can place in the array?
I don't know (and don't think so) - but would very much like this option too!
you might be able to hack it by overriding (in your ModelAdmin_CollectionController)
$query = parent::getSearchQuery($searchCriteria);
//modify $query here
alternative is to have the best sort defined in the dataobject...
static $default_sort = 'Title ASC';
Your alternative worked. Thank you!