Pergunta

In my extbase/fluid extension, I can get "if" conditions to work in a List template, but not in a Partial.

<f:if condition="item.label == 0">xxx</f:if>

returns true and writes out "xxx" no matter what item.typ's value is.

Is that the right syntax for a condition in a partial?

Foi útil?

Solução

Got it. The field name needs to be in curly brackets:

  <f:if condition="{item.label} == 0">xxx</f:if>
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top