| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function updateCMSFields(FieldList $fields) { |
||
| 27 | parent::updateCMSFields($fields); |
||
| 28 | |||
| 29 | // Rename metafield |
||
| 30 | $meta = $fields->fieldByName('Root.Main.Metadata'); |
||
| 31 | $meta->setTitle(_t('CwpSearchBoostExtension.PAGEINFO', 'Page info and SEO')); |
||
| 32 | |||
| 33 | $boostTitle = _t('CwpSiteTreeSearchBoost.SearchBoost', 'Boost Keywords'); |
||
| 34 | $boostNote = _t('CwpSiteTreeSearchBoost.SearchBoostNote', '(Only applies to the search results on this site e.g. not on Google search)'); |
||
| 35 | $boostDescription = _t( |
||
| 36 | 'CwpSiteTreeSearchBoost.SearchBoostDescription', |
||
| 37 | 'Enter keywords separated by comma ( , ) for which to boost the ranking of this page within the search results on this site.' |
||
| 38 | ); |
||
| 39 | $boostField = TextareaField::create('SearchBoost', $boostTitle) |
||
| 40 | ->setRightTitle($boostNote) |
||
| 41 | ->setDescription($boostDescription); |
||
| 42 | $fields->insertBefore($boostField, 'MetaDescription'); |
||
| 43 | } |
||
| 45 |