$fields = FieldList::create(); $tab = $fields->findOrMakeTab('Main'); $tab->push(TextField::create('Title', 'Title'));
$fields = $this->getCMSFields(); $tab = $fields->findOrMakeTab('Settings'); $tab->push(CheckboxField::create('IsEnabled', 'Is Enabled?')); $this->setCMSFields($fields);In this example, we use the findOrMakeTab method to add a new tab called 'Settings' to an existing FieldList object. We then add a checkbox field to this tab and set the updated FieldList object as the CMS fields for a SilverStripe CMS page. Package/Library Name: SilverStripe CMS.