21294 Posts in 5734 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1317 Views |
-
Move "Metadata" tab to end

6 May 2009 at 6:38am
I have created several custom tabs. Now I want to move the "Metadata" tab to end.
-
Re: Move "Metadata" tab to end

6 May 2009 at 1:08pm
I am pretty sure this can be done by removing it then adding it in again at the end, ie:
 $f->removeFieldFromTab("Root.Content","Metadata");
$f->addFieldToTab("Root.Content","Metadata"); -
Re: Move "Metadata" tab to end

6 May 2009 at 11:28pm
Howard, your idea does not work.
The first line successfully removes the Metadata tab, but when I add the second tab I get an error:
Fatal error: Call to a member function Name() on a non-object in FieldSet.php on line 393
It seems that it cannot be added again because it was removed.
-
Re: Move "Metadata" tab to end

18 June 2009 at 2:25am
This worked for me:
$metadataTab = $fields->findOrMakeTab('Root.Content.Metadata');
$fields->removeByName('Metadata');
$fields->addFieldToTab('Root.Content', $metadataTab);
| 1317 Views | ||
|
Page:
1
|
Go to Top |


