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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

SiteTree Database Field Error


Go to End


2 Posts   1132 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, 5523 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');