Jump to:

5542 Posts in 1739 Topics by 1225 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: 1016 Views
  • spankmaster79
    Avatar
    Community Member
    46 Posts

    Use different language items in SimpleTreeDropDownfield Link to this post

    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

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