Skip to content

Commit

Permalink
update form positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarholt committed Oct 7, 2024
1 parent 56a6609 commit 0ee8209
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Extensions/SeoAIExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@

use SilverStripe\Forms\FieldList;
use SilverStripe\ORM\DataExtension;
use SilverStripe\Forms\CompositeField;
use LeKoala\CmsActions\CmsInlineFormAction;

class SeoAIExtension extends DataExtension
{
public function updateCMSFields(FieldList $fields)
{
$fields->addFieldToTab('Root.Main', CmsInlineFormAction::create('generateTags', 'Generate SEO Tags'));
$fields->insertAfter('SocialImage', CompositeField::create(
CmsInlineFormAction::create('generateTags', 'Generate SEO Tags')
)->setDescription('Generate SEO tags using AI (this may take several seconds)')
);
}
}

0 comments on commit 0ee8209

Please sign in to comment.