From 72e7ce399b418fba18e8a96fe0026b8c10784b78 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 15 Oct 2010 01:48:17 +0000 Subject: [PATCH] ENHANCEMENT Abbreviating comment text display in CommentAdmin to first 150 characters (from r105268) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@112463 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 17ea6a4f..81f14d20 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(