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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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   1048 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');