'Boolean(0)', 'DateOn' => 'Datetime', 'DateOff' => 'Datetime', ]; public function updateCMSFields(FieldList $fields) { parent::updateCMSFields($fields); $fields->removeByName([ 'PageLinkID', 'Hide', 'DateOn', 'DateOff', ]); $fields->addFieldToTab('Root.Main', ToggleCompositeField::create( 'ConfigHD', 'Slide Settings', [ CheckboxField::create('Hide', 'Hide this slide? (That will hide the slide regardless of start/end fields)'), DatetimeField::create('DateOn', 'When would you like to start showing the slide?'), DatetimeField::create('DateOff', 'When would you like to stop showing the slide?'), ] )); } }