[TYPO3-templavoila] Multilingual FCE select list in Frontend

Dmitry Dulepov 9f4eetb02 at sneakemail.com
Fri Mar 16 12:10:37 CET 2007


Hi!

David Lanier wrote:
> I have an FCE with a select list.  I am able to use use labels in the 
> backend using a locallang file [listing 1].
> 
> This works fine in the backend.  The labels of the select list are 
> pulled from the locallang file.
> 
> But I'm stuck in displaying the correct value to the frontend.  The 
> number (0, 1 or 2) is stored in the database, so the appropriate label 
> for that stored value must be displayed.  I'm sure there must be a 
> standard way of doing this, but I haven't been able to find it.
> 
> Possibly use stdWrap inside the proc tag? [listing 2]
> 
> I would be most grateful if someone could point me in the right direction.

I had this problem once and I had to solve it very quickly (an hour or 
so). So I did not find anything better than putting that LLL thing 
instead of number. That worked fine.

I think you can use "if.equals" of stdWrap to test for values but that 
would be large TS...

-- 
Dmitry Dulepov

Web: http://typo3bloke.net/
Skype: callto:liels_bugs

"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)


More information about the TYPO3-project-templavoila mailing list