[TYPO3-templavoila] Multilingual FCE select list in Frontend

David Lanier mailinglists at davidlanier.com
Fri Mar 16 16:15:54 CET 2007


Storing the LLL bit works perfectly!  Thank you!

Here is the updated code similar to what I'm now using.

<numIndex index="0" type="array">
  <numIndex index="0">LLL:fileadmin/my_locallang.xml:status.0</numIndex>
  <numIndex index="1">LLL:fileadmin/my_locallang.xml:status.0</numIndex>
</numIndex>
<numIndex index="1" type="array">
  <numIndex index="0">LLL:fileadmin/my_locallang.xml:status.1</numIndex>
  <numIndex index="1">LLL:fileadmin/my_locallang.xml:status.1</numIndex>
</numIndex>
<numIndex index="2" type="array">
  <numIndex index="0">LLL:fileadmin/my_locallang.xml:status.2</numIndex>
  <numIndex index="1">LLL:fileadmin/my_locallang.xml:status.2</numIndex>
</numIndex>


Dmitry Dulepov wrote:
> 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...
> 


More information about the TYPO3-project-templavoila mailing list