1 <?php
2 3 4 5 6 7
8 class SeoOpenGraphSiteConfig extends SiteConfigDecorator {
9
10 function () {
11 return array(
12 'has_one' => array(
13 'SocialsImage' => 'Image',
14 )
15 );
16 }
17
18 public function updateCMSFields(FieldSet &$fields) {
19 $tab = self::get_config_tab($fields, 'SEO');
20 $tab->push(new ImageField('SocialsImage', $this->owner->FieldLabel('SocialsImage')));
21 }
22 }
[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the
Silverstripe Forums to ask development related questions.
-