Version: current

     1 <?php
     2
     3 class FindCyrillicSiteConfig extends SiteConfigDecorator {
     4     function extraStatics() {
     5         return array(
     6             'db' => array(
     7                 'EmailForReports' => 'Varchar(255)',
     8             ),
     9         );
    10     }
    11
    12     function updateCMSFields(& $fields) {
    13         if(Director::isDev()){
    14             $tab = self::get_config_tab($fields, 'FindCyrillic');
    15             $tab->push(new TextField('EmailForReports', 'Email для отчетов(test@mediaweb.ru)'));
    16             $tab->push(new LiteralField('FindCyrillic', '<a href="/find_cyrillic">Сгенерировать отчет</a>'));
    17         }
    18     }
    19 }

[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. -