Эта проблема
Я настроил что-то в файле, перекрывая этот 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.