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.

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


1064 Views

Avatar
spankmaster79

Community Member, 46 Posts

9 February 2011 at 7:31am

Edited: 09/02/2011 7:32am

Hi,

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?