Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function updateCMSFields(FieldList $fields) { |
||
14 | // Don't show this field if you're not an admin |
||
15 | if(!Permission::check('ADMIN')) { |
||
16 | return; |
||
17 | } |
||
18 | |||
19 | // Search synonyms |
||
20 | $fields->addFieldToTab( |
||
21 | 'Root.FulltextSearch', |
||
22 | TextareaField::create('SearchSynonyms', _t('CwpConfig.SearchSynonyms', 'Search Synonyms')) |
||
23 | ->setDescription(_t( |
||
24 | 'CwpConfig.SearchSynonyms_Description', |
||
25 | 'Enter as many comma separated synonyms as you wish, where '. |
||
26 | 'each line represents a group of synonyms.<br /> ' . |
||
27 | 'You will need to run <a rel="external" target="_blank" href="dev/tasks/Solr_Configure">Solr_Configure</a> if you make any changes' |
||
28 | )) |
||
55 |