我写了一些 ViewHelpers 工作得很好,但只在主部分......为了更好地理解:
<f:section name="Configuration">
<flux:field.select name="first" label="first" items="{0: '10', 1: '40'}"/>
<flux:field.select name="second" label="second" items="{myViewHelpers:load()}"/>
</f:section>
<f:section name="Preview">
</f:section>
<f:section name="Main">
{myViewHelpers:load()}
</f:section>
{myViewHelpers:load()}
返回一个字符串,例如
{0:'10',1:'40'}
在 Main-Section 中,这非常有效,但是如果我在 Configuration-section 中使用相同的 ViewHelper,它就不会再加载后端了……我在 Typo3 中只得到一个空白字段,通常是该元素出现的地方。
我将不胜感激任何建议!