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

How to set page comments to require moderating


Go to End


2 Posts   1267 Views

Avatar
Arbee

Community Member, 31 Posts

19 September 2014 at 3:56pm

Can someone please tell me how to turn on page comments for moderating? I do have the blog module installed and enhanced blog module as well. Working with SS3.1

Much thanks for hopefully a speedy answer :)

Avatar
Arbee

Community Member, 31 Posts

21 September 2014 at 5:09am

I found the answer and did some learning in the process, but it took me 5 days so wanted to post the answer in hope it will help others.

Where did I find the answer? In the config file there was this comment: To see all the configuration options read docs/en/Configuration.md or consult the Commenting class.

I didn't know to look there. Would have been nice to have that in the Readme file :) I know where to look for additional help next time.

So the solution was adding this to mysite/_config.php

// Sets require_moderation to true for all pages
Commenting::set_config_value('SiteTree', 'require_moderation', true);

// mysite/_config.php - Returns the setting
Commenting::get_config_value('SiteTree', 'require_moderation');

Hope this helps someone else.