[TYPO3-dev] Correct check for localisation and workspace in fe plugin

Jigal van Hemert jigal at xs4all.nl
Wed Jan 25 09:55:10 CET 2012


Hi,

On 25-1-2012 7:35, Georg Ringer wrote:
> Am 24.01.2012 21:58, schrieb Jigal van Hemert:
>> The way to get a localized version of a table row:
>>
>> if ($GLOBALS['TSFE']->sys_language_content) {
>> $row = $GLOBALS['TSFE']->sys_page->getRecordOverlay('table_name', $row,
>> $GLOBALS['TSFE']->sys_language_content,
>> $GLOBALS['TSFE']->sys_language_contentOL, '');
>> }
>
> IMO with one restriction: this works for every table except pages

Of course! In that case there is the function getPageOverlay($pageInput, 
$lUid = -1)

But the question was about content elements, so I only gave info about 
records other than pages.

Thanks for the addition!

-- 
Kind regards / met vriendelijke groet,

Jigal van Hemert.



More information about the TYPO3-dev mailing list