Skip to content

Commit

Permalink
changing extension to SEO page
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarholt committed Jun 23, 2024
1 parent 3cdee48 commit 412c67f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/Extensions/AISeoExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 412c67f

Please sign in to comment.