Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

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

SiteTree Database Field Error


Reply


2 Posts   863 Views

Avatar
sca123

Community Member, 61 Posts

12 October 2009 at 7:55am

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

Avatar
Willr

Forum Moderator, 5513 Posts

12 October 2009 at 9:24am

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

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