【发布时间】:2016-02-28 10:06:30
【问题描述】:
我正在寻找内联流体条件和typoscriptObjectPath 的解决方案。
工作正常:
<f:cObject typoscriptObjectPath="lib.currentDate" />
工作正常:
<f:if condition="{price.day} == {f:cObject(typoscriptObjectPath:'lib.currentDate')}">
<f:then>work</f:then>
<f:else>dont work</f:else>
</f:if>
工作正常:
{f:if(condition:'{price.day} == \'Sunday\'',then:'active',else:'test')}
不要工作
{f:if(condition:'{price.day} == \'{f:cObject(typoscriptObjectPath:'lib.currentDate')}\'',then:'active',else:'test')}
如何使用正确的内联代码?
【问题讨论】: