Jump to:

23453 Posts in 18902 Topics by 2877 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: 793 Views
  • sca123
    Avatar
    Community Member
    61 Posts

    SiteTree Database Field Error Link to this post

    Hi

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

    Administrators
    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??

    Thanks
    Samuel

  • Willr
    Avatar
    Forum Moderator
    5497 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');

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