So that gives me an error saying
Fatal error: FieldList::addFieldToTab() Tried to add a tab to object 'SilverStripe\Forms\FieldList' - 'Hero' didn't exist. in /var/www/html/vendor/silverstripe/framework/src/Forms/FieldList.php on line 473
- $fields->insertBefore(new Tab('Root.Hero', 'Hero'), 'Main');
- $fields->addFieldToTab('Root.Hero', TextField::create('HeroSubtitle','Subtitle'));
@Brad.EH I think this is expected - you're adding a tab to "Main", then adding a new tab to Root.Main - which results in two
Tabs named Main.
What you're looking for on the first line is
new TabSet (although ideally you'd use