5542 Posts in 1739 Topics by 1225 members
|Go to End|
17 January 2009 at 10:34am
So I was able to add custom tabs to the cms:
$fields->addFieldToTab('Root.Content.Test', new TextField('x'));
$fields->addFieldToTab('Root.Test', new TextField('x'));
both of these produced the desired results.
When I tried to add
$fields->addFieldToTab('Root.Test.Subject3', new TextField('x'));
$fields->addFieldToTab('Root.Content.Test.Subject3', new TextField('x'));
$fields->addFieldToTab('Root.Access.Test', new TextField('4'));
It would crash the CMS... is there a way to get around this... I am really looking to creat Root.custom.custom if possible.
Is there a file some where that defines the Content tab that could be copied and renamed to create addtional tab that had the easy ability to create child tabs?
Thanks in davnce for the help... the forum has been a Tremendous resource so far...
27 January 2009 at 12:48pm
27 January 2009 at 1:59pm
My guess is that you can't do two customs at once because the FieldSet object runs a FindOrMake() function for the tab you specify. I think the only way to do it is to first add a field to Root.Custom, then add a field to Root.Custom.Custom. But if both customs haven't been created yet, i dont' think you can get both at once. Just a hunch.
|Go to Top|