Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Typo3 类型3.index>;10_Typo3_Fluid - Fatal编程技术网

Typo3 类型3.index>;10

Typo3 类型3.index>;10,typo3,fluid,Typo3,Fluid,我正在尝试在每个循环中添加一个基于条件的类 在这里,这只是第一个有效的方法。第二个是文本。所以格式一定有问题 <tr class="item{f:if(condition: itemIteration.isFirst, then: 'hidden')}"> <tr class="item{f:if(condition: itemIteration.index > 10, then: 'hidden')}"> 我可以这样写,所以索引工作得很好 <tr cl

我正在尝试在每个循环中添加一个基于条件的类

在这里,这只是第一个有效的方法。第二个是文本。所以格式一定有问题

<tr class="item{f:if(condition: itemIteration.isFirst, then: 'hidden')}">
<tr class="item{f:if(condition: itemIteration.index > 10, then: 'hidden')}">

我可以这样写,所以索引工作得很好

<tr class="<f:if condition="{itemIteration.index} > 10">hidden</f:if>">
10>隐藏“>

您忘了引用条件

<tr class="item{f:if(condition: itemIteration.index > 10, then: 'hidden')}">

一定是

<tr class="item{f:if(condition: '{itemIteration.index} > 10', then: 'hidden')}">

您忘了引用条件

<tr class="item{f:if(condition: itemIteration.index > 10, then: 'hidden')}">

一定是

<tr class="item{f:if(condition: '{itemIteration.index} > 10', then: 'hidden')}">