[TYPO3] TCA and site languages

Francesco Pessina typo3news at yahoo.it
Thu Jun 29 17:41:34 CEST 2006


Hi folks!

I've a big problem with this scenario:
- I make a new extension with Kickstater (KS)
- the selfmade ext. is localized in 2 or more language (for example EN, IT and DE)
- some database, created with KS, have in some fields a reference to another database
   (in the KS the field type is "database relation"
- I install the new extension and relate it som some pages of web site.
- I create my data records in the BE with the TCA form (create by KS)

And here come my problem: the combo-box (in the TCA form) of the field type "database relation" show 
*always* all the records of this related table; so if the main record is localized in English, I see 
in this combo the available English items but also the Italian and German items (ordered by uid). I 
want to see (in this combo) only one localized items (for example if I edit a record in italian 
language, in the combo I want to see only italian items, not the other!)

I've try many solutions by editing SQL code in the tca.php of the extension directory but I've no 
idea how to get the language ID of record currently openend in the TCA form. But by Web->list I see 
the record ID (showed as tooltip on the record's icon), the localized version (next the record's 
title) and other very usefull infos!! How to grab it by PHP code in the TCA.php?

I've read the TCA section on Typo3 Core API but I can't find anything about this...

Thanks for any suggestion!!

Best regards.

Francesco.



More information about the TYPO3-english mailing list