[TYPO3-english] formhandler, value.current, CASE...understanding problems

Sören Kracker s.kracker at kopfstand-mail.de
Fri Feb 10 15:36:49 CET 2012


Thank you Reinhard,

but this means, that it's not possible to do something like my 
switch/case depending on the value except using a userfunction? Is that 
right? A plain example: value can be A or B (nothing else), I want to 
change it to C (if it's A) and to D (if it's B).

Am 09.02.2012 15:19, schrieb Reinhard Führicht:
> Hi Sören,
>
> Am 09.02.2012 15:01, schrieb Sören Kracker:
>> Hi list,
>>
>> Seems that, the current value isn't present there.
>
>> Another question regarding formhandler and this example: Is it somehow
>> possible to get the values using .field? Something like that (which is
>> not working):
>
> I think the answer to both questions is that Formhandler sets "value" 
> to the value of the field configured in "mapping" automatically.
>
> Additionally, "current" isn't set by Formhandler because of this reason.
>
> So, f.e. in this case:
>
> mydbfield {
>     preProcessing = TEXT
>     preProcessing {
>         wrap = asdf|asdf
>     }
>     mapping = myvar
> }
>
> The TS which Formhandler creates looks like this:
>
> mydbfield {
>     preProcessing = TEXT
>     preProcessing {
>     value = Value of the field myvar
>         wrap = asdf|asdf
>     }
>     mapping = myvar
> }
>
> If you set the "value" yourself in TS, Formhandler will not set it 
> automatically.
>
> Regards,
> Reinhard
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


More information about the TYPO3-english mailing list