Update SiteTree.php

This commit is contained in:
Tony Air 2020-05-04 11:57:25 +07:00 committed by GitHub
parent 8329777989
commit cc150c9f80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,11 +14,11 @@ class SiteTree extends DataExtension
'AvailableOffline' => 'Boolean(1)', 'AvailableOffline' => 'Boolean(1)',
]; ];
public function updateCMSFields(FieldList $fields) public function updateSettingsFields(FieldList $fields)
{ {
parent::updateCMSFields($fields); parent::updateCMSFields($fields);
$fields->addFieldsToTab('Root.Settings', [ $fields->addFieldsToTab('Root.Main', [
CheckboxField::create('AvailableOffline', 'Make page available offline'), CheckboxField::create('AvailableOffline', 'Make page available offline'),
]); ]);
} }