Skip to content

Commit

Permalink
remove default meta field (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebakernz authored Oct 17, 2024
1 parent 977224c commit 679250b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Model/Extension/SeoPageExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ class SeoPageExtension extends DataExtension
*/
public function updateCMSFields(FieldList $fields)
{
// remove default SS field
$fields->removeByName('MetaDescription');

// SEO notice
if (!$this->owner->MetaTitle || !$this->owner->MetaDescription) {
Expand Down

0 comments on commit 679250b

Please sign in to comment.