Domanda

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?

È stato utile?

Soluzione

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

  <f:if condition="{item.label} == 0">xxx</f:if>
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top