[TYPO3-templavoila] fce selector box how to?

Klaus Hinum k_hinum at hotmail.com
Fri Mar 24 09:20:06 CET 2006


Klaus Hinum schrieb:
> Dmitry Dulepov schrieb:
> 
>> Hi!
>>
>> Klaus Hinum wrote:
>>
>>> can somebody help me to implement a selector box so that the user can
>>> choose an option and different html output is shown on the screen.
>>
>>
>>
>> Try using locallang files in items:
>>
>> <numIndex index="0" type="array">
>>   <numIndex 
>> index="0">LLL:fileadmin/locallang.xml:selector.text</numIndex>
>>   <numIndex 
>> index="1">LLL:fileadmin.locallang.xml:selector.value</numIndex>
>> </numIndex>
>>
>>> so i wanted to solve that with some typoscript after the <eType></eType>
>>> tags but there i havent got a clue how to do it (if and conditions with
>>> the field name did not work, to output the fieldname did work.)
>>
>>
>>
>> Did not get this...
>>
>> Dmitry.
> 
> 
> oh thanks thats a good solution, but anyway i would need to find the 
> solution for the integration of a condition in the typoscript field of 
> the ds object
> 
> here is part of my ds object:
> 
>     <field_test type="array">
>                 <tx_templavoila type="array">
>                     <title>Klassenerklaerung</title>
>                     <sample_data type="array">
>                         <numIndex index="0">sample</numIndex>
>                     </sample_data>
>                     <eType>select</eType>
>             <TypoScript>
>            
>             # this works
>             10 = TEXT
>             10.field = field_test
>             # but how to make a condition
>             # for example if field = 0 then
>             # [field_test = 0] does not work
>             # and also the if did not work
> 
>             </TypoScript>
>                 </tx_templavoila>
>                 <TCEforms type="array">
>                     <config type="array">
>                         <type>select</type>
>                         <items type="array">
>                             <numIndex index="0" type="array">
>                                 <numIndex index="0">option 1</numIndex>
>                                 <numIndex index="1">1</numIndex>
>                             </numIndex>
>                             <numIndex index="1" type="array">
>                                 <numIndex index="0">otpion 2</numIndex>
>                                 <numIndex index="1">2</numIndex>
>                             </numIndex>
>                         </items>
>                         <default>0</default>
>                     </config>
>                     <label>Klassenerklaerung</label>
>                 </TCEforms>
>             </field_test>
> 
> thanks in advance for your help
> kl

please somebody, my project is standing still because of that ...



More information about the TYPO3-project-templavoila mailing list