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.

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

Silverstripe page relation in different languages

Go to End



Community Member, 46 Posts

9 February 2011 at 7:31am

Edited: 09/02/2011 7:32am


I have created a Link DataObject to automatically let users create a reference to a different page in the Frontend. I use two languages in the frontend, german and englisch. In the popup I creat a dropdown to select the pages

public function getCMSFields_forPopup()
    return new FieldSet(
        new TextField('Titel'),
        new TextField('URL', 'Externer Link'),
        new SimpleTreeDropdownField('PageLinkID', 'Interner Link', 'SiteTree')

But I only get the german pages in the dropdown. Tried to change the admin language to english but no change. The database seems to only return the german pages...

Any clue?