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.

Customising the CMS /

Use different language items in SimpleTreeDropDownfield


Reply


1066 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