21288 Posts in 5733 Topics by 2602 members
General Questions
SilverStripe Forums » General Questions » [SOVLED] Bug? TreeDropdownField hides SimpleHTMLEditorField
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 493 Views |
-
[SOVLED] Bug? TreeDropdownField hides SimpleHTMLEditorField

13 February 2012 at 12:36am
Hi,
Has anyone come across this? When I add a TreeDropdownField control to CMS popup the SimpleHTMLEditorField disappears. Removing the TreeDowndownField brings it back. Also, doesn't matter what order I add the fields.
Thanks,
JI have small PHP class for a news item:
class NewsItem extends DataObject
{
static $db = array
(
'Heading_' => 'Varchar(100)',
'Body_' => 'HTMLText'
);
static $has_one = array
(
'Page_' => 'HomePage',
'Link_' => 'SiteTree'
);
function getCMSFields_forPopup()
{
global $simplehtml_default_controls; // just removes some buttonsreturn new FieldSet(new TextField('Heading_', 'Heading'),
new SimpleHTMLEditorField('Body_', 'News', $simplehtml_default_controls),
new TreeDropdownField('Link_ID', 'Link', 'SiteTree'));
}
} -
Re: [SOVLED] Bug? TreeDropdownField hides SimpleHTMLEditorField

15 February 2012 at 3:58pm
Use SimpleTreeDropdownField.
---------------
Silverstripe tips, tutorials, screencasts, and more. http://www.leftandmain.com -
Re: [SOVLED] Bug? TreeDropdownField hides SimpleHTMLEditorField

15 February 2012 at 4:01pm
Thanks Uncle Cheese! I'll give that a go. I just posted a comment on your site Left and Main about this thread.
-
Re: [SOVLED] Bug? TreeDropdownField hides SimpleHTMLEditorField

17 February 2012 at 12:53am
Yep, that did the trick.
| 493 Views | ||
|
Page:
1
|
Go to Top |

