Whenever I make a connection $has_many
or $many_many
, SilverStripe will create the corresponding tab in the top tab. I create GridField
by assigning it to a variable and pasting it into the main tab. This works fine, but the Tiles tab still remains, although it is empty.
$fields->addFieldsToTab('Root.Main',
[
... Other fields ...,
$tiles
]
);
I tried $fields->removeByName('Tiles');
but removes the tab and field. Is there a way to remove the top tab and save the field?
Main tab (grid tile at the bottom)

Tiles Tabs (empty)

source
share