21279 Posts in 5729 Topics by 2600 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 540 Views |
-
Silverstripe page relation in different languages

9 February 2011 at 7:31am Last edited: 9 February 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?
| 540 Views | ||
|
Page:
1
|
Go to Top |

