问题
我在一个文件中定制了一些东西,覆盖了这个news
扩展文件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>
一些文档
- https://docs.typo3.org/typo3cms/extensions/core/Changelog/8.6/Feature-79402-VariableViewHelperForFluid.html
- https://fluidtypo3.org/viewhelpers/vhs/master/Variable/SetViewHelper.html
我的平台
- 我正在使用 TYPO3 9.5.3,但也想知道 8.7 的答案。