[TYPO3-dev] Loading columnitems from TCA

Sune nospam_sune at talefod.dk
Tue Aug 29 16:24:18 CEST 2006


Hi Tapio (and others)

I need it in the frontend, sorry :)

I found a function which suits my needs:
$GLOBALS['TSFE']->sL($label)

where $label is the label i want to translate.

$label =
$GLOBALS['TSFE']->sL($GLOBALS['TCA']['tx_fbdbfields_profiles']['columns']['s
ex']['config']['items']['0']['0']);

This seems to fix my problem, but thanks for the fast reply anyway :)

/Sune


"Tapio Markula" <tapio.markula at dnainternet.net> skrev i en meddelelse
news:mailman.1.1156860365.17079.typo3-dev at lists.netfielders.de...
> Sune kirjoitti:
> > Hi
> >
> > I have the following code:
> >
> >   t3lib_div::loadTCA('tx_fbdbfields_profiles');
> >   $label =
> >
$GLOBALS['TCA']['tx_fbdbfields_profiles']['columns']['sex']['config']['items
> > ']['0']['0'];
> >
> > Now label is
> > "LLL:EXT:fb_dbfields/locallang_db.xml:tx_fbdbfields_profiles.sex.I.0".
> >
> > What i want is to get the real label. But i cant figure out how :(
> >
>
> Where you need it?
> In general the language tool automatic fetch the real label.
> But if you want to redefine Frontend label, you might need the
information.
> Or if you want to make marker. But you don't tell,
> *where* you would need it.
>






More information about the TYPO3-dev mailing list