Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Blog Module comments showing in number even when not yet moderated


Go to End


1058 Views

Avatar
masterys

Community Member, 5 Posts

9 November 2013 at 1:55pm

I am developing a SS3.1.1 site with the blog, widget and comments modules installed. I have turned on comment moderation in my _config.php file. A comment submitted does go into the "Needs Moderation" section of the CMS, but the $Comments.Count in the template is indicating there is a comment, even though it hasn't been moderated yet and is not visible on the front-end. Please see attached screen shot showing that there is one comment on the blog post at the same time that it says that no one has yet commented on this entry.

How can I make it so that the $Comments.Count only shows the actual number of moderated comments, rather than all submitted comments?