Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
35 | public function getCMSFields() { |
||
36 | $this->beforeUpdateCMSFields(function (FieldList $fields) { |
||
37 | $fields->addFieldToTab( |
||
38 | 'Root.Main', |
||
39 | TextField::create('Author', $this->fieldLabel('Author')), |
||
40 | 'Abstract' |
||
41 | ); |
||
42 | |||
43 | $fields->addFieldToTab( |
||
44 | 'Root.Main', |
||
45 | UploadField::create('FeaturedImage', $this->fieldLabel('FeaturedImageID')), |
||
46 | 'Abstract' |
||
47 | ); |
||
48 | }); |
||
49 | return parent::getCMSFields(); |
||
50 | } |
||
56 |