Skip to content

Commit

Permalink
field placement
Browse files Browse the repository at this point in the history
  • Loading branch information
ebakernz committed Oct 10, 2024
1 parent eddf8c9 commit 977224c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/Model/Extension/SeoPageExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ public function updateCMSFields(FieldList $fields)

// SEO notice
if (!$this->owner->MetaTitle || !$this->owner->MetaDescription) {
$fields->addFieldToTab(
'Root.Main',
$fields->push(
LiteralField::create('SEO Notice', '<p class="message warning">Attention required: Please complete the SEO fields below.</p>')
);
}
Expand Down Expand Up @@ -205,10 +204,9 @@ public function updateCMSFields(FieldList $fields)
$uploader->setDescription('Using the page featured image');
}
}
}
}

$fields->addFieldToTab(
'Root.Main',
$fields->push(
ToggleCompositeField::create(
'SEO',
'Page SEO Settings',
Expand All @@ -217,10 +215,9 @@ public function updateCMSFields(FieldList $fields)
$title,
$description,
$uploader,
]
]
),
);

}


Expand Down

0 comments on commit 977224c

Please sign in to comment.