3070 Posts in 869 Topics by 651 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 447 Views |
-
Show Created date in model admin lists

9 January 2012 at 11:08pm
How do i do this, I have tried adding 'Created' to the $summary_fields array.
-
Re: Show Created date in model admin lists

10 January 2012 at 4:32am
I use casting for this...
http://doc.silverstripe.org/sapphire/en/topics/datamodel#casting -
Re: Show Created date in model admin lists

11 January 2012 at 4:28pm
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.
-
Re: Show Created date in model admin lists

11 January 2012 at 10:24pm
public static $summary_fields = array (
'CreatedText',
);static $casting = array("CreatedText" => "Text");
public function CreatedText() {
return $this->Created;
}(note:untested)
| 447 Views | ||
|
Page:
1
|
Go to Top |


