Created
May 20, 2015 08:57
-
-
Save bueckl/8e1f464ff9b4ee7960f4 to your computer and use it in GitHub Desktop.
Silverstripe SS3 moving arounf Tabs / TabOrder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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