Typo3内容元素在自己的流体模板中不可见

时间:2016-07-26 15:30:01

标签: typo3 typo3-7.6.x

我开始创建自己的Typo3扩展,它基于FluidTemplating。我创建了布局,模板和自定义内容元素。该网站在显示模板方面工作正常。我还能够看到内容元素的后端网格。但是当我添加新的内容元素时(无论是Typo3预定义的还是来自我的扩展名的内容元素),模板中的占位符都不会被特定内容替换。

我在页面模板中定义了网格,如下所示:

<f:section name="Configuration">
    <flux:form id="frontpage">
        <!-- Insert fields, sheets, grid, form section objects etc. here, in this flux:form tag -->
    </flux:form>
    <flux:grid>
        <!-- Edit this grid to change the "backend layout" structure -->
        <flux:grid.row>
            <flux:grid.column colPos="0" colspan="12" name="main" />
        </flux:grid.row>
        <flux:grid.row>
            <flux:grid.column colPos="1" colspan="4" name="footerleft" label="Footer Left" />
            <flux:grid.column colPos="2" colspan="4" name="footermiddle" label="Footer Middle" />
            <flux:grid.column colPos="3" colspan="4" name="footerright" label="Footer Right" />
        </flux:grid.row>
    </flux:grid>
</f:section>

并将它们添加到以下部分中:

<f:section name="Main">
    <div class="section">
       <v:content.render column="0" />
    </div>
</f:section>


<f:section name="Footer">
    <div class="footer">
       <v:content.render column="1" />
       <v:content.render column="2" />
       <v:content.render column="3" />
    </div>
</f:section>

有没有人有一些想法/建议/经验?这可能是什么问题,或者我如何调试问题?

提前多多感谢。

1 个答案:

答案 0 :(得分:1)

如果您还没有这样做,请附上模板:

这是一个例子: typo3 styles.content.get not working

相关问题