SilverStripe 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:
- SilverStripe Quick Tip: Enable Akismet spam filter (Sunday, May 23rd 2010)
- SilverStripe Quick Tip: Comments in Templates (Tuesday, May 11th 2010)
- SilverStripe cache directory (Saturday, March 13th 2010)

Comments
blog comments powered by Disqus