private function defaultFields()
    {
        $owner = $this->owner;
        $this->field_list = array(
            'Root.Main' => array(
                0  => TextField::create('Title', $owner->fieldLabel('Title')),
                6  => HTMLEditorField::create('Content', $owner->fieldLabel('Content')),
                8  => TextField::create('Author', $owner->fieldLabel('Author')),
                9  => DateField::create('PublishFrom', $owner->fieldLabel('PublishFrom'))->setConfig('showcalendar', true),
                10 => CheckboxField::create('Live', $owner->fieldLabel('Published')),
                11 => CheckboxField::create('Commenting', $owner->fieldLabel('Commenting')),
                12 => UploadField::create('Impression', $owner->fieldLabel('Impression')),
            )
        );
        $this->field_list['Root.Main'][9]->setConfig('dateformat', 'yyyy-MM-dd');
    }
private function defaultFields()
    {
        $owner = $this->owner;
        $this->field_list = array(
            'Root.Main' => array(
                0  => TextField::create('Title', $owner->fieldLabel('Title')),
                6  => HTMLEditorField::create('Content', $owner->fieldLabel('Content')),
                8  => TextField::create('Author', $owner->fieldLabel('Author')),
                9  => DateField::create('PublishFrom', $owner->fieldLabel('PublishFrom'))->setConfig('showcalendar', true),
                10 => CheckboxField::create('Live', $owner->fieldLabel('Published')),
                11 => CheckboxField::create('Commenting', $owner->fieldLabel('Commenting')),
                12 => UploadField::create('Impression', $owner->fieldLabel('Impression')),
            )
        );
        $this->field_list['Root.Main'][9]->setConfig('dateformat', 'yyyy-MM-dd');
    }
private function defaultFields ( ) { $ owner = $ this -> owner ; $ this -> field_list = array ( 'Root.Main' => array ( 0 => TextField :: create ( 'Title' , $ owner -> fieldLabel ( 'Title' ) ) , 6 => HTMLEditorField :: create ( 'Content' , $ owner -> fieldLabel ( 'Content' ) ) , 8 => TextField :: create ( 'Author' , $ owner -> fieldLabel ( 'Author' ) ) , 9 => DateField :: create ( 'PublishFrom' , $ owner -> fieldLabel ( 'PublishFrom' ) ) -> setConfig ( 'showcalendar' , true ) , 10 => CheckboxField :: create ( 'Live' , $ owner -> fieldLabel ( 'Published' ) ) , 11 => CheckboxField :: create ( 'Commenting' , $ owner -> fieldLabel ( 'Commenting' ) ) , 12 => UploadField :: create ( 'Impression' , $ owner -> fieldLabel ( 'Impression' ) ) , ) ) ; $ this -> field_list [ 'Root.Main' ] [ 9 ] -> setConfig ( 'dateformat' , 'yyyy-MM-dd' ) ; }
Setup the default fields that are always available.
Setup the default fields that are always available .