[TYPO3-english] Flux: conditions inside objects
bernd wilke
t3ng at bernd-wilke.net
Thu Feb 13 12:03:23 CET 2014
inside a flux definition (fluidcontent) I want a condition for the
following fields of each object.
What is the path to the switch-value?
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>
later on for the display I work with
<f:for each="{products}" as="singleproduct" iteration="iteration">
<f:if condition="{singleproduct.product.useImageByNumber}">
<f:then>...show image by number...</f:then>
<f:else>...show image by path...</f:else>
</f:if>
</f:for>
but in the form-definition I have no "<f:for each..."
what so I need to write for the ??????? ?
TYPO3 6.1.7
fluid 6.1.0
flux 6.0.2
fluidcontent 3.1.0
--
http://www.pi-phi.de/cheatsheet.html
More information about the TYPO3-english
mailing list