Skip to content

Commit

Permalink
Merge pull request #38 from PlasticStudio/feature/seo-fields-marker
Browse files Browse the repository at this point in the history
Adding marker for positioning
  • Loading branch information
brad-ps authored Nov 5, 2024
2 parents 45242e2 + 5d45610 commit c06f0c7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Model/Extension/SeoPageExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@ public function updateCMSFields(FieldList $fields)
// remove default SS field
$fields->removeByName('MetaDescription');

// This gives us a target to position other cms fields "before"
$fields->addFieldToTab(
'Root.Main',
LiteralField::create('SEOMarker', '') // so we can position stuff above seo notice
);

// SEO notice
if (!$this->owner->MetaTitle || !$this->owner->MetaDescription) {
$fields->addFieldToTab('Root.Main',
Expand Down

0 comments on commit c06f0c7

Please sign in to comment.