public function updateCMSFields(FieldList $fields)
    {
        $owner = $this->owner;
        $fields->removeByName(array('MD5Email', 'NewsID'));
        $fields->addFieldsToTab(
            'Root.Main', array(
                TextField::create('Title', $owner->fieldLabel('Title')),
                TextField::create('Name', $owner->fieldLabel('Name')),
                TextField::create('Email', $owner->fieldLabel('Email')),
                TextField::create('URL', $owner->fieldLabel('URL')),
                HtmlEditorField::create('Comment', $owner->fieldLabel('Comment')),
                CheckboxField::create('AkismetMarked', $owner->fieldLabel('AkismetMarked')),
                CheckboxField::create('Visible', $owner->fieldLabel('Visible')),
                CheckboxField::create('ShowGravatar', $owner->fieldLabel('ShowGravatar')),
            )
        );
    }
public function updateCMSFields(FieldList $fields)
    {
        $owner = $this->owner;
        $fields->removeByName(array('MD5Email', 'NewsID'));
        $fields->addFieldsToTab(
            'Root.Main', array(
                TextField::create('Title', $owner->fieldLabel('Title')),
                TextField::create('Name', $owner->fieldLabel('Name')),
                TextField::create('Email', $owner->fieldLabel('Email')),
                TextField::create('URL', $owner->fieldLabel('URL')),
                HtmlEditorField::create('Comment', $owner->fieldLabel('Comment')),
                CheckboxField::create('AkismetMarked', $owner->fieldLabel('AkismetMarked')),
                CheckboxField::create('Visible', $owner->fieldLabel('Visible')),
                CheckboxField::create('ShowGravatar', $owner->fieldLabel('ShowGravatar')),
            )
        );
    }
public function updateCMSFields ( FieldList $ fields ) { $ owner = $ this -> owner ; $ fields -> removeByName ( array ( 'MD5Email' , 'NewsID' ) ) ; $ fields -> addFieldsToTab ( 'Root.Main' , array ( TextField :: create ( 'Title' , $ owner -> fieldLabel ( 'Title' ) ) , TextField :: create ( 'Name' , $ owner -> fieldLabel ( 'Name' ) ) , TextField :: create ( 'Email' , $ owner -> fieldLabel ( 'Email' ) ) , TextField :: create ( 'URL' , $ owner -> fieldLabel ( 'URL' ) ) , HtmlEditorField :: create ( 'Comment' , $ owner -> fieldLabel ( 'Comment' ) ) , CheckboxField :: create ( 'AkismetMarked' , $ owner -> fieldLabel ( 'AkismetMarked' ) ) , CheckboxField :: create ( 'Visible' , $ owner -> fieldLabel ( 'Visible' ) ) , CheckboxField :: create ( 'ShowGravatar' , $ owner -> fieldLabel ( 'ShowGravatar' ) ) , ) ) ; }
Setup the fields for the CMS.

@param FieldList $fields
Setup the fields for the CMS .