Skip to content

Commit

Permalink
Merge pull request #38 from mlewis-everley/mle-socialfieldsfix
Browse files Browse the repository at this point in the history
Remove new social fields before re-adding

ty merging this now
  • Loading branch information
hubertusanton authored Jul 31, 2020
2 parents f8c0d3a + 6a4d053 commit c07d986
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/SeoObjectExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,15 @@ public function updateCMSFields(FieldList $fields)
);

// move Metadata field from Root.Main to SEO tab for visualising direct impact on search result

$fields->removeFieldFromTab('Root.Main', 'Metadata');
$fields->removeFieldsFromTab(
'Root.Main',
[
'Metadata',
'SEOSocialType',
'SEOHideSocialData',
'SEOSocialImage'
]
);

$fields->addFieldsToTab(
'Root.SEO',
Expand Down

0 comments on commit c07d986

Please sign in to comment.