mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
ENHANCEMENT Abbreviating comment text display in CommentAdmin to first 150 characters
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@105268 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
d5f5e1466e
commit
5d5cc70a69
@ -86,7 +86,8 @@ class CommentAdmin extends LeftAndMain {
|
|||||||
$table = new CommentTableField($this, "Comments", "PageComment", $section, $tableFields, $popupFields, array($filter), 'Created DESC');
|
$table = new CommentTableField($this, "Comments", "PageComment", $section, $tableFields, $popupFields, array($filter), 'Created DESC');
|
||||||
$table->setParentClass(false);
|
$table->setParentClass(false);
|
||||||
$table->setFieldCasting(array(
|
$table->setFieldCasting(array(
|
||||||
'Created' => 'SSDatetime->Full'
|
'Created' => 'SSDatetime->Full',
|
||||||
|
'Comment' => array('HTMLText->LimitCharacters', 150)
|
||||||
));
|
));
|
||||||
|
|
||||||
$fields = new FieldSet(
|
$fields = new FieldSet(
|
||||||
|
Loading…
Reference in New Issue
Block a user