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