Typo3 Fluid:elseif 内联表示法

Ren*_*ell 4 fluid viewhelper typo3-8.x

下面的例子有内联符号吗?

<f:if condition="{value}==1">
    <f:then>Value is 1</f:then>
    <f:else if="{value}==2">Value is 2</f:else>
</f:if>
Run Code Online (Sandbox Code Playgroud)

感谢您的帮助

Ber*_* πφ 6

可能是if-viewhelpers 的级联:

{f:if(condition:'{value}==1', 
    then:'Value is 1', 
    else:'{f:if(condition:\'{value}=2\', then:\'Value is 2\')}'
)}
Run Code Online (Sandbox Code Playgroud)

对于堆叠的内联视图助手来说,通常的缺点是转义字符串分隔符。