Merge pull request #9566 from purplespider/patch-3

Fixes getCMSFields TabSet example
This commit is contained in:
Robbie Averill 2020-06-29 09:27:17 -07:00 committed by GitHub
commit 82f096496e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,12 +44,14 @@ To fully customise your form fields, start with an empty FieldList.
public function getCMSFields()
{
$fields = FieldList::create(
TabSet::create("Root.Main",
TabSet::create("Root",
Tab::create("Main",
CheckboxSetField::create('IsActive','Is active?'),
TextField::create('Title'),
TextareaField::create('Content')
->setRows(5)
)
)
);
return $fields;