Jump to:

23546 Posts in 19335 Topics by 2889 members

General Questions

SilverStripe Forums » General Questions » SiteTree Database Field Error

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 802 Views
  • sca123
    Community Member
    61 Posts

    SiteTree Database Field Error Link to this post


    I am using 'Link1' => 'SiteTree' and "new TreeDropdownField('Link1ID','Link'));" however the only two options I have appearing in the dropdown is:

    Newsletter Subscribers

    I really would like it to show all pages in the site.

    Any help would be appeciated - this may be a bug in the Newsletter module??


  • Willr
    Forum Moderator
    5511 Posts

    Re: SiteTree Database Field Error Link to this post

    You have to tell the TreeDropdownField which dataobjects you would like in the dropdown field.

    new TreeDropdownField('LinkID', 'Link', 'SiteTree');

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.