From 412c67f7e16d06e29b8a354a19c22394cda82883 Mon Sep 17 00:00:00 2001 From: Oscar Date: Mon, 24 Jun 2024 10:50:52 +1200 Subject: [PATCH] changing extension to SEO page --- src/Extensions/AISeoExtension.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Extensions/AISeoExtension.php b/src/Extensions/AISeoExtension.php index 28fbe47..bd11ca8 100644 --- a/src/Extensions/AISeoExtension.php +++ b/src/Extensions/AISeoExtension.php @@ -2,19 +2,17 @@ use SilverStripe\Forms\FieldList; use SilverStripe\Forms\CheckboxField; -use PlasticStudio\SEO\Model\Extension\SeoExtension; +use PlasticStudio\SEO\Model\Extension\SeoPageExtension; -class AISeoExtension extends SeoExtension +class AISeoExtension extends SeoPageExtension { private static $db = [ 'Test' => 'Boolean', ]; - public function updateCMSFields(FieldList $fields) + public function updateSettingsFields(FieldList $fields) { - $fields = parent::updateCMSFields($fields); - - $fields->addFieldToTab('Root.Main', CheckboxField::create('Test', 'Test')); + $fields->addFieldToTab('Root.MetaTags', CheckboxField::create('Test', 'Test')); return $fields; }