mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
Put comment configuration on the settings tab
This commit is contained in:
parent
6d1c5f2b30
commit
8ab18fe1d0
@ -51,9 +51,9 @@ class CommentsExtension extends DataExtension {
|
||||
*
|
||||
* @param FieldSet
|
||||
*/
|
||||
public function updateCMSFields(FieldList $fields) {
|
||||
public function updateSettingsFields(FieldList $fields) {
|
||||
if($this->attachedToSiteTree()) {
|
||||
$fields->addFieldToTab('Root.Behaviour',
|
||||
$fields->addFieldToTab('Root.Settings',
|
||||
new CheckboxField('ProvideComments', _t('Comment.ALLOWCOMMENTS', 'Allow Comments'))
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user