diff --git a/code/BlogEntry.php b/code/BlogEntry.php index be1a71c..dece06d 100644 --- a/code/BlogEntry.php +++ b/code/BlogEntry.php @@ -216,6 +216,13 @@ class BlogEntry extends Page { return $holder; } + + /** + * Get count of moderated comments only + */ + public function getApprovedComments(){ + return $this->Comments('Comment.Moderated = 1'); + } } class BlogEntry_Controller extends Page_Controller {