fluid - Typo3 流体 : elseif inline notation

标签 fluid typo3-8.x viewhelper

以下示例是否有内联符号?

<f:if condition="{value}==1">
    <f:then>Value is 1</f:then>
    <f:else if="{value}==2">Value is 2</f:else>
</f:if>

谢谢你的帮助

最佳答案

可能是if的级联- View 助手:

{f:if(condition:'{value}==1', 
    then:'Value is 1', 
    else:'{f:if(condition:\'{value}=2\', then:\'Value is 2\')}'
)}

通常的缺点是为堆叠的内联 View 助手转义字符串分隔符。

关于fluid - Typo3 流体 : elseif inline notation,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47161945/

相关文章:

typo3 - 在 Typo3 中启用记录翻译

typo3 - 如何部分设置 VHS 的 AllowViewHelper 中的 FrontendUserGroup?

forms - Typo3 8.7 : Different mail templates for form finisher EmailToReceiver/EmailToSender

css - 如何更改在 typo3 8.7 中创建的表单的字体?

Typo3 Fluid : What is the correct way to render flux:flexform. field.wizard.link?

html - 水平堆叠 DIV

java - nineoldandroids 库使 View 不稳定

zend-framework2 - 在 Zend Framework 2 中扩展 Zend\View\Helper\Url

css - HTML/CSS : Fixed Margin & Fluid Width

typo3 - Powermail 中的添加、重命名或删除布局选项