public function updateCMSFields(FieldList $fields)
    {
        $owner = $this->owner;
        $fields->removeByName(array('News', 'NewsID', 'SortOrder'));
        $fields->addFieldsToTab(
            'Root.Main', array(
                TextField::create('Title', $owner->fieldLabel('Title')),
                HtmlEditorField::create('Description', $owner->fieldLabel('Description')),
                UploadField::create('Image', $owner->fieldLabel('Image')),
            )
        );
    }
public function updateCMSFields(FieldList $fields)
    {
        $owner = $this->owner;
        $fields->removeByName(array('News', 'NewsID', 'SortOrder'));
        $fields->addFieldsToTab(
            'Root.Main', array(
                TextField::create('Title', $owner->fieldLabel('Title')),
                HtmlEditorField::create('Description', $owner->fieldLabel('Description')),
                UploadField::create('Image', $owner->fieldLabel('Image')),
            )
        );
    }
public function updateCMSFields ( FieldList $ fields ) { $ owner = $ this -> owner ; $ fields -> removeByName ( array ( 'News' , 'NewsID' , 'SortOrder' ) ) ; $ fields -> addFieldsToTab ( 'Root.Main' , array ( TextField :: create ( 'Title' , $ owner -> fieldLabel ( 'Title' ) ) , HtmlEditorField :: create ( 'Description' , $ owner -> fieldLabel ( 'Description' ) ) , UploadField :: create ( 'Image' , $ owner -> fieldLabel ( 'Image' ) ) , ) ) ; }
Setup the CMSFields

@param FieldList $fields
Setup the CMSFields