From 5d5cc70a69b804e7ee94cbbfe6afddc678053c94 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 20 May 2010 07:28:11 +0000 Subject: [PATCH] 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 --- code/CommentAdmin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/CommentAdmin.php b/code/CommentAdmin.php index fe0d0994..2ccea3fa 100644 --- a/code/CommentAdmin.php +++ b/code/CommentAdmin.php @@ -86,7 +86,8 @@ class CommentAdmin extends LeftAndMain { $table = new CommentTableField($this, "Comments", "PageComment", $section, $tableFields, $popupFields, array($filter), 'Created DESC'); $table->setParentClass(false); $table->setFieldCasting(array( - 'Created' => 'SSDatetime->Full' + 'Created' => 'SSDatetime->Full', + 'Comment' => array('HTMLText->LimitCharacters', 150) )); $fields = new FieldSet(