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.

Customising the CMS /

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

Use different language items in SimpleTreeDropDownfield


Go to End


1506 Views

Avatar
spankmaster79

Community Member, 46 Posts

31 January 2011 at 2:26am

Hi,

I use a simple TreeDropdownfield to define a relationship between a page and a Dataobject.

So for the popup I use:

public function getCMSFields_forPopup()
{
        return new FieldSet(
            new SimpleTreeDropdownField('PageLinkID', 'Interner Link', 'SiteTree')
        );
}

This works great for the default language (german) but when I translate the pages and I use this dataobject on the english pages, I get only a list of german pages to use. Maybe because the backend is used in german.

How can I control the language of items that are used in the sitetree.....

Greetz
Spanky