Jump to:

5540 Posts in 1738 Topics by 1224 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Use different language items in SimpleTreeDropDownfield

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

Page: 1
Go to End
Author Topic: 1012 Views
  • spankmaster79
    Community Member
    46 Posts

    Use different language items in SimpleTreeDropDownfield Link to this post


    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.....


Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.