Skip to content

Instantly share code, notes, and snippets.

@bueckl
Created May 20, 2015 08:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bueckl/8e1f464ff9b4ee7960f4 to your computer and use it in GitHub Desktop.
Save bueckl/8e1f464ff9b4ee7960f4 to your computer and use it in GitHub Desktop.
Silverstripe SS3 moving arounf Tabs / TabOrder
public function getCMSFields() {
$fields = parent::getCMSFields();
$TabSet = $fields->findOrMakeTab('Root');
$Main = $TabSet->fieldByName('Main');
$TabSet->removeByName('Main');
………………
$fields->addFieldsToTab('Root.Main', array(
$Main
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment