How do i do this, I have tried adding 'Created' to the $summary_fields array.
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
I use casting for this...
http://doc.silverstripe.org/sapphire/en/topics/datamodel#casting
Are you able to provide an example?
All I am looking to do is show the Created and LastEdited columns in a model admin search results table.
public static $summary_fields = array (
'CreatedText',
);
static $casting = array("CreatedText" => "Text");
public function CreatedText() {
return $this->Created;
}
(note:untested)