Source of file SeoSiteConfig.php
Size: 0,860 Bytes - Last Modified: 2021-12-23T10:04:46+00:00
/var/www/docs.ssmods.com/process/src/code/SeoSiteConfig.php
123456789101112131415161718192021222324252627282930313233343536 | <?php /** * SeoSiteConfig * adds site-wide settings for SEO */ class SeoSiteConfig extends DataExtension { private static $db = array( 'GoogleWebmasterMetaTag' => 'Varchar(512)' ); /** * updateCMSFields. * Update Silverstripe CMS Fields for SEO Module * * @param FieldList * @return none */ public function updateCMSFields(FieldList $fields) { $fields->addFieldToTab("Root.SEO", TextareaField::create("GoogleWebmasterMetaTag", _t('SEO.SEOGoogleWebmasterMetaTag', 'Google webmaster meta tag')) ->setRightTitle( _t( 'SEO.SEOGoogleWebmasterMetaTagRightTitle', "Full Google webmaster meta tag For example <meta name=\"google-site-verification\" content=\"hjhjhJHG12736JHGdfsdf\" />" ) ) ); } } |