Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » TreeDropdownField()

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 906 Views
  • OzziNL
    Avatar
    Community Member
    37 Posts

    TreeDropdownField() Link to this post

    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...

    906 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.