Login | Forgot password | Register
What is OpenID?
OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.
With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.
For more information visit the official OpenID site.
Data Model Questions
SilverStripe Forums » Data Model Questions » Bug: Cannot add tab to a new tab in CMS
|
Page:
1
|
Go to End | |
| Author | Topic: Bug: Cannot add tab to a new tab in CMS | 607 Views |
-
Bug: Cannot add tab to a new tab in CMS

17 April 2009 at 4:50pm
The following:
function getCMSFields(){
$fields = parent::getCMSFields();
...$fields->addFieldToTab('Root.Homepage', new HtmlEditorField('HomepageDescription', 'Homepage Description (Optional)'));
$fields->addFieldToTab('Root.Homepage.Display', new CheckboxField('ShowInHomepage', 'Show this special on the Homepage (customise below)'));
...Throws the error:
User Error] FieldSet::addFieldToTab() Tried to add a tab to object 'Tab' named 'Homepage' - 'Display' didn't exist.
GET /admin?flush=1Line 266 in D:\Websites\xampp\htdocs\sapphire\forms\FieldSet.php
Which is an error in findOrMakeTab when adding 'ExistingRoot.NewTab.NewSubTab'
Any suggestions or should i log this bug?
Also are tabs limited to three levels? (this bug prevents me finding out) -
Re: Bug: Cannot add tab to a new tab in CMS

17 April 2009 at 4:53pm Last edited: 17 April 2009 5:04pm
note it doesn't matter that I have already added the first new tab i.e.
findOrMakeTab('ExistingRoot.NewTab')
findOrMakeTab('ExistingRoot.NewTab.NewSubtab') <- this line throws the errorAnother update:
In 2.3.1 the error is Line 270 in FieldSet.php -
Re: Bug: Cannot add tab to a new tab in CMS

28 April 2009 at 10:41pm
you got any solution for this issue yet ?
| 607 Views | ||
|
Page:
1
|
Go to Top |
Currently Online: SSadmin, CodeGuerrilla , Euphemismus, pitsnipe, rgo, Sean, freenet, Willr
Welcome to our latest member: pitsnipe


