【发布时间】:2016-11-02 13:23:28
【问题描述】:
我写了一些 ViewHelper,它们工作得很好,但只在 Main-Section... 为了更好地理解:
<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 中只得到一个空白字段,通常元素出现。
如有任何建议,我将不胜感激!
【问题讨论】:
标签: typo3 fluid view-helpers viewhelper