public function getFrontEndFields($params = null)
    {
        $fields = parent::getFrontEndFields($params);
        $fields->removeByName(array(
            'MD5Email',
            'AkismetMarked',
            'Visible',
            'ShowGravatar',
            'News',
        ));
        $fields->replaceField('Email', EmailField::create('Email', $this->fieldLabel('Email')));
        $fields->replaceField('Comment', TextAreaField::create('Comment', $this->fieldLabel('Comment')));
        $fields->fieldByName('Comment')
            ->setColumns(20)
            ->setRows(10);

        return $fields;
    }
public function getFrontEndFields($params = null)
    {
        $fields = parent::getFrontEndFields($params);
        $fields->removeByName(array(
            'MD5Email',
            'AkismetMarked',
            'Visible',
            'ShowGravatar',
            'News',
        ));
        $fields->replaceField('Email', EmailField::create('Email', $this->fieldLabel('Email')));
        $fields->replaceField('Comment', TextAreaField::create('Comment', $this->fieldLabel('Comment')));
        $fields->fieldByName('Comment')
            ->setColumns(20)
            ->setRows(10);

        return $fields;
    }
public function getFrontEndFields ( $ params = null ) { $ fields = parent :: getFrontEndFields ( $ params ) ; $ fields -> removeByName ( array ( 'MD5Email' , 'AkismetMarked' , 'Visible' , 'ShowGravatar' , 'News' , ) ) ; $ fields -> replaceField ( 'Email' , EmailField :: create ( 'Email' , $ this -> fieldLabel ( 'Email' ) ) ) ; $ fields -> replaceField ( 'Comment' , TextAreaField :: create ( 'Comment' , $ this -> fieldLabel ( 'Comment' ) ) ) ; $ fields -> fieldByName ( 'Comment' ) -> setColumns ( 20 ) -> setRows ( 10 ) ; return $ fields ; }
Setup the fields for the frontend

@param type $params

@return FieldList $fields the default FieldList
Setup the fields for the frontend