WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: sys_language_uid, fallback on default language

sys_language_uid, fallback on default language

by Muriel le Pair :: Rate this Message:

| View in Thread

Hi,

I have a fairly simple question. I have a multi language extension. If
there are no records in the current language it needs to fetch the
records of the default language.

I am fetching the records as follows:
AND sys_language_uid = '.$GLOBALS['TSFE']->sys_language_uid

But this query only select the records of the current language.

So what is the correct way for TYPO3?

I thought sys_page->getRecordOverlay() would do the trick. But somehow
the records are not translated, maybe this is because the original query
uses a join.

$GLOBALS['TSFE']->sys_page->getRecordOverlay($table,$item,
$GLOBALS['TSFE']->sys_language_uid);

--
kind regards,

Muriel le Pair
_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

 « Return to Thread: sys_language_uid, fallback on default language