[TYPO3-english] Is there a BE-Method to translate page-records?
    Stefan Frömken 
    firma at sfroemken.de
       
    Thu Jan 12 13:20:30 CET 2012
    
    
  
Am 12.01.2012 12:41, schrieb Stefan Frömken:
> Hello List,
>
> I'm searching for a TYPO3-API BE-Method to translate records of table
> pages. Any ideas?
>
> Following don't works:
> t3lib_BEfunc::getRecordLocalization('pages', $row['uid'], $sysLang[1]);
>
> This is because isTableLocalizable($table) returns false for table 'pages'.
>
> $GLOBALS['TSFE']->sys_page->getRecordOverlay
> and
> $GLOBALS['TSFE']->sys_page->getPageOverlay
>
> are not valid within BE.
>
> Stefan
OK...it seems that there is no such method. I just searched the complete 
TYPO3-Source for pages_language_overlay and I found following style 3 or 
4 times:
list($pageOverlay) = t3lib_BEfunc::getRecordsByField(
	'pages_language_overlay',
	'pid',
	$row['uid'],
	'AND sys_language_uid=' . intval($sysLang[1])
);
Stefan
    
    
More information about the TYPO3-english
mailing list