0

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?

biesior
  • 55,576
  • 10
  • 125
  • 182
Urs
  • 4,984
  • 7
  • 54
  • 116

1 Answers1

0

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

  <f:if condition="{item.label} == 0">xxx</f:if>
Urs
  • 4,984
  • 7
  • 54
  • 116