[TYPO3-mvc] Language overlay for table pages

Thomas Heilmann heilmann at mindscreen.de
Thu Nov 25 20:19:30 CET 2010


Hi again,

> translation handling should be done in the background. Anyway, after
> getting the PageLanguageOverlays, I replace all properties of the Page
> object that need to be translated:
> 
> $page->setTitle($pageLanguageOverlay->getTitle());
> etc.

a little addition: of course you have to clone the page object before
setting a new title, otherwise the translation gets persisted in the
original record. You probably thought of it anyway -- I didn't. :)

Regards,
Thomas


More information about the TYPO3-project-typo3v4mvc mailing list