[TYPO3-english] Re: Flux: conditions inside objects

Viktor Livakivskyi invisible.kinder at gmail.com
Mon Feb 17 13:58:20 CET 2014


> What I want to achieve:
> 
> <flux:flexform.sheet name="products">
>    <flux:flexform.section name="products">
>      <flux:flexform.object name="product">
>        <flux:flexform.field.input name="headline" />
>        <flux:flexform.field.checkbox name="useImageByNr" default="1" 
> requestUpdate="1" transform="integer" />
>        <f:if condition="{???????.useImageByNr}">
>        <f:then><flux:flexform.field.input name="imagenumber"/></f:then>
>        <f:else><flux:flexform.field.file name="imagefile" 
> internalType="file" allowed="jpg,png" maxItems="1" showThumbs="1" 
> /></f:else>
>        </f:if>
>      </flux:flexform.object>
>    </flux:flexform.section>
> </flux:flexform.sheet>
> 
> what so I need to write for the ??????? ?
> 

Hi, Bernd.

According to this article [1], you can simply put <f:if condition="{useImageByNr}">

You can try and write the result here, since we also didn't try such a thing.

[1]: http://jkphl.is/articles/dating-fluid-powered-typo3


More information about the TYPO3-english mailing list