mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #9566 from purplespider/patch-3
Fixes getCMSFields TabSet example
This commit is contained in:
commit
82f096496e
@ -44,11 +44,13 @@ To fully customise your form fields, start with an empty FieldList.
|
|||||||
public function getCMSFields()
|
public function getCMSFields()
|
||||||
{
|
{
|
||||||
$fields = FieldList::create(
|
$fields = FieldList::create(
|
||||||
TabSet::create("Root.Main",
|
TabSet::create("Root",
|
||||||
CheckboxSetField::create('IsActive','Is active?'),
|
Tab::create("Main",
|
||||||
TextField::create('Title'),
|
CheckboxSetField::create('IsActive','Is active?'),
|
||||||
TextareaField::create('Content')
|
TextField::create('Title'),
|
||||||
->setRows(5)
|
TextareaField::create('Content')
|
||||||
|
->setRows(5)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user