[TYPO3-ttnews] Taking the date from original new item for translation

Stefano Kowalke blueduck at gmx.net
Wed Feb 3 18:48:59 CET 2010


Am 02.02.10 19:03, schrieb Stefano Kowalke:
> ... 
> I want that tt_news insert the date from the default language into the
> datetime field of the translation.
> 
> I already tried couple of changes in the tca.php like changing
> 'default' => mktime(date("H"),date("i"),0,date("m"),date("d"),date("Y"))
> into
> 'default' => '0'
> 
> or changing the
> 'l10n_mode' => 'mergeIfNotBlank',
> into exclude or noCopy

Finally i found a solution:

You have to clear the key "l10n_mode" for every field where you want a
one to one copy from default language to translation.

In my case i added this line to typo3conf/extTables.php:
$TCA['tt_news']['columns']['datetime']['l10n_mode'] = '';


Stefano


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