SilverStripe Quick Tip: Enable comment moderationSilverStripe Quick Tip: Enable comment moderation

Posted May 19th, 2010 in Quick Tips and SilverStripe

By default SilverStripe comments do not require moderation i.e. all comments are automatically approved and displayed on the site. This quick tip shows how to enable moderation in a SilverStripe install so the moderator has to approve all comments before they are visible.

Enable comment moderation in SilverStripe

In your site's main _config.php file at mysite/_config.php add the following line:

PageComment::enableModeration();

That's all there is to it. All comments will now required a moderator to approve before they are visible on the website.

Related posts:

Comments

blog comments powered by Disqus