FIX: SS5 outdated element

This commit is contained in:
Tony Air 2024-04-22 15:42:25 +02:00
parent 9f2a14afd2
commit cec20eebf9

View File

@ -142,6 +142,7 @@ class SiteConfigExtension extends DataExtension
$fields->addFieldsToTab('Root.Maps', $addrFields); $fields->addFieldsToTab('Root.Maps', $addrFields);
if (\class_exists(MapboxField::class)) {
if (MapboxField::getAccessToken()) { if (MapboxField::getAccessToken()) {
$fields->addFieldsToTab('Root.Maps', [ $fields->addFieldsToTab('Root.Maps', [
//TextField::create('MapAPIKey'), //TextField::create('MapAPIKey'),
@ -153,6 +154,7 @@ class SiteConfigExtension extends DataExtension
LiteralField::create('MapNotice', '<p class="alert alert-info">No Map API keys specified.</p>') LiteralField::create('MapNotice', '<p class="alert alert-info">No Map API keys specified.</p>')
]); ]);
} }
}
/*GoogleMapField::create( /*GoogleMapField::create(
$this->owner, $this->owner,