[TYPO3] the simplest way to get multilingual values of header/subheder/bodytext

Krystian Szymukowicz t33k.RE.MO.VE at RE.MO.VE.prolabium.com
Wed May 17 09:16:38 CEST 2006


hi

I am just wondering what is the simplest way to get multilingual values 
of header/subheder/bodytext etc.

I've just read documentation:
http://typo3.org/documentation/document-library/references/doc_core_tsref/current/view/2/2/

there is that:

***
DB: Value from database, syntax is [tablename] : [uid] : [field]. Any 
record from a table in TCA can be selected here. Only marked-deleted 
records does not return a value here.
***

which allow to have something like that:

temp.10 = TEXT
temp.10.data = DB:tt_content:234:header

so far so good

but what with multilanguage values?

I know I can have:

[globalVar = GP:L = 1]
temp.10 = TEXT
temp.10.data = DB:tt_content:235:header
[end]

but it would be much easier to write something like this:

temp.10 = TEXT
temp.10.data = DB:tt_content:234:header:sys_language_uid

it is much more universal.
I do not need to know how many languages are in system.
I do not need to build conditions.
I do not need to know what pid has translated tt_content.

Can anyone be so kind to give me some clue if there is easier way to get 
multilingual values than [globalVar = GP:L = 1] [end] ?

Am I missing something obvious?

thanks

--
Krystian Szymukowicz








More information about the TYPO3-english mailing list