Hi there.
I am wanting to do related pages on my site. How I did this on 2.4 was use a related SiteTree object and TreeDropdownField. The code I'm using is bellow:
public static $has_one = array(
'Feature1Page' => 'SiteTree',
);
public function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Main', new TreeDropdownField('Feature1PageID', 'Feature 1 Link', 'SiteTree'));
$return $fields;
}
The dropdown menu shows in the CMS, but when I go to select something and press the arrow down button nothing is shown. Am I missing something or done something wrong? Or is this a bug that needs fixing in 3.0?
Cheers,
Steve