Hello,
I have a page type with some fields and one of the fields should be a url to another page in the tree. I use:
$fields->addFieldsToTab('Root.Content.Banners', new TreeDropdownField('Banner1Url','Link','SiteTree','URLSegment'));
This works fine but when saved and I return to the page I get an error as attached. It tries to do a get_by_id with the non-nummeric URLSegment. Am I doing something wrong?
Thanks a lot...