Here is y code:
static $db = array(
'Bucket1_Link' => 'Text',
);
public function getCMSFields()
{
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Content.Bucket1', new TreeDropdownField('Bucket1_Link', 'Choose a page', 'SiteTree'));
return $fields;
}
in the template I use the variable $Bucket1_Link, whhich is id of the page. But I need the URL of the page. How would I get it?
thank you!