From 5d45610f97791df4129679aee60dca6bfd95cfd3 Mon Sep 17 00:00:00 2001 From: Brad Tipper Date: Tue, 5 Nov 2024 14:52:09 +1300 Subject: [PATCH] Adding marker for positioning --- src/Model/Extension/SeoPageExtension.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Model/Extension/SeoPageExtension.php b/src/Model/Extension/SeoPageExtension.php index 56bcdeb..ce417df 100644 --- a/src/Model/Extension/SeoPageExtension.php +++ b/src/Model/Extension/SeoPageExtension.php @@ -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',