TYPO3 LTS 8: Unterschied zwischen den Versionen

Aus Vosp.info
Wechseln zu:Navigation, Suche
Zeile 19: Zeile 19:
 
</f:if>
 
</f:if>
 
</source>
 
</source>
 +
 +
vorher [[TYPO3.CMS_7.6_Schnipsel#elseif]]
  
 
* https://stackoverflow.com/questions/29461381/fluid-if-then-elseif-else
 
* https://stackoverflow.com/questions/29461381/fluid-if-then-elseif-else

Version vom 6. Juli 2017, 09:30 Uhr

Typo3 - TYPO3.CMS 7.6 Schnipsel

Unterschiede zu vorigen Versionen

extbase

fluid

f:if

<f:if condition="{var} == 'something'">
    <f:then>do something</f:then>
    <f:else if="{other-var} == 'something else'">do something else</f:else>
    <f:else>do the other thing</f:else>
</f:if>

<f:if condition="{something} || {someOtherThing}">
    Something or someOtherThing
</f:if>

vorher TYPO3.CMS_7.6_Schnipsel#elseif