سؤال

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?

هل كانت مفيدة؟

المحلول

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

  <f:if condition="{item.label} == 0">xxx</f:if>
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top