I'm having difficulty with the SimpleTreeDropdownField in Silverstripe 2.4 Final and release 395 of DataObjectManager module - it simply doesnt' show.
Any clues?
All other fields show, but not that one.
It doesn't appear at first glance to be the same as the problem with the SimpleHTMLEditorField described here where the class hidden wasn't being unset by the JavaScript http://www.silverstripe.org/dataobjectmanager-module-forum/show/283202 as the HTML code isn't even being output to the popup window.
Below is the code for my data object that does this in case it helps:
<?php
class HCPFeature extends DataObject {
//database
public static $db = array(
"Title" => "Varchar(255)",
"Description" => "HTMLText"
);
public static $has_one = array(
"HeroImage" => "HCPFeature_Image",
"DeepLink" => "SiteTree"
);
public function getCMSFields() {
$fields = new FieldSet();
$fields->push( new TextField( 'Title', 'Title' ) );
$fields->push( new SimpleHTMLEditorField( 'Description', 'Description' ) );
$fields->push( new SimpleTreeDropdownField("DeepLinkID", "Links to page", "SiteTree") );
$fields->push( new ImageField( 'HeroImage', 'Image' ) );
return $fields;
}
}
class HCPFeature_Image extends Image {
function generateHeroLarge($gd) {
$gd->setQuality(100);
return $gd->paddedResize(468,220);
}
}
?>