[TYPO3-ttnews] news: using localized news records

Felix Nagel lists at felixnagel.com
Fri Nov 18 12:55:22 CET 2011


> what do you mean with "single record"? Mainly all problems related to
> those language things are done by extbase and there is not everything
> implemented yet.
>
> What extbase (= news) does: It fetches all records with sys_language_uid
> = 0 or -1 and does an overlay afterwards. So *currently* it does not
> fetch the records which are done in a different language only without
> any default record.
I assume its using getRecordsOverlay? Thats seem to be my problem.
Currently we're just create a new record and set the language to 
English, so there is no connection to the default language record.
What would is the correct way to do this?

> what is your TS setting for language fallbacks? do you use strict?
> disable that. (general TS, not news related)
We are using sys_language_mode = strict and sys_language_overlay = 
hideNonTranslated but a change from strict to content_fallback or 
disabling it completely wont change anything.

I assume a possible solution would be using something like this within 
fluid:
$where = '(sys_language_uid IN (-1,0) OR (sys_language_uid = ' 
.$GLOBALS['TSFE']->sys_language_uid. ' AND l18n_parent = 0))';

Please see here (German language) 
http://www.felixnagel.com/blog/artikel/2010/06/24/mehrsprachige-typo3-extensions-getrecordoverlay-richtig-einsetzen/


> this should of course translate the content elements and should work out
> of the box (I am never using those CE) but will try to test that too.
> When you can't resolve it, please open a ticket as usual
I will give it a try when localization works so far.

Thanks for your fast feedback!
-- 
Regards
Felix Nagel


More information about the TYPO3-project-tt-news mailing list