mirror of
https://github.com/a2nt/silverstripe-progressivewebapp.git
synced 2024-10-22 11:05:45 +02:00
Update SiteTree.php
This commit is contained in:
parent
8329777989
commit
cc150c9f80
@ -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'),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user