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模板中,v:variable.set起作用。。。但是f:变量不是 问题_Typo3_Fluid_View Helpers_Typo3 9.x - Fatal编程技术网

在TYPO3模板中,v:variable.set起作用。。。但是f:变量不是 问题

在TYPO3模板中,v:variable.set起作用。。。但是f:变量不是 问题,typo3,fluid,view-helpers,typo3-9.x,Typo3,Fluid,View Helpers,Typo3 9.x,我在一个文件中定制了一些内容,覆盖了这个新闻扩展文件Templates/Styles/Twb/Templates/news/List.html。这是有效的 <v:variable.set name="special.category" value="1" /> <f:if condition="{special.category}"> <f:then> Do something for the special category when the

我在一个文件中定制了一些内容,覆盖了这个新闻扩展文件Templates/Styles/Twb/Templates/news/List.html。这是有效的

<v:variable.set name="special.category" value="1" />

<f:if condition="{special.category}">
  <f:then>
    Do something for the special category when the variable's boolean value is 1
  </f:then>
  <f:else>
    Otherwise do something else
  </f:else>
</f:if>
但是当我试图把它改成这个的时候,它就不起作用了

<f:variable name="special.category" value="1" />

<f:if condition="{special.category}">
  <f:then>
    Do something for the special category when the variable's boolean value is 1
  </f:then>
  <f:else>
    Otherwise do something else
  </f:else>
</f:if>
一些文件 我的平台 我正在使用TYPO3 9.5.3,但也想知道8.7的答案。
我认为它是变量名中的点。在这种情况下,vhs:变量的实现可能不同。也许这行得通?

您使用哪种类型的Typo3版本?我编辑了我的问题,并补充说我使用的是TYPO 9.5.3。我想这是变量名中的点。在这种情况下,vhs:变量的实现可能不同。也许这行得通?哦,这很有道理。。。确实有效。非常感谢。我把这个解贴出来作为答案,这样你就可以结束这个问题了,对吗D