Typo3 7.6 Flux后端布局列标题

时间:2016-04-06 15:34:39

标签: typo3 typo3-7.6.x

我使用构建器扩展创建了一个基本模板。在页面属性中,我将Backend layout设置为fuildpages,我现在在后端看到构建器扩展创建的2列:

<f:section name="Configuration">
    <flux:form id="standard">
        <!-- 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="3" name="main" />
            <flux:grid.column colPos="1" name="right" />
        </flux:grid.row>
    </flux:grid>
</f:section>

<f:section name="Main">
    <h1>I am a page template!</h1>
    <p>
        My template file is EXT:my_template/Resources/Private/Page/Standard.html.
    </p>
    <div style="float: left; width: 75%;">
        <h2>Content main</h2>
        <v:content.render column="0" />
    </div>
    <div style="float: left; width: 25%;">
        <h2>Content right</h2>
        <v:content.render column="1" />
    </div>
</f:section>

但是在后端,这些列没有名称“main”和“right”。

在typo3 6.2中,这与构建器创建的基本模板一起使用。我想念一下吗?

还有一个问题:默认后端布局"Left" "Normal" "Right" "Border"是否有sysext?我想看看它是如何完成的但是我找不到它。

1 个答案:

答案 0 :(得分:3)

您需要在label - 代码上设置<flux:grid.column/>属性。 name属性仅用于引用其他位置的列,例如使用<v:content.render/>中的EXT:vhs - ViewHelper来呈现它。

关于列标签翻译的说明:由于缓存(GitHub issue),label属性可以包含<f:translate/> - ViewHelper的用法。如果您要翻译列名,则需要在某个默认密钥下提供翻译,其中的一个是here解释的。

相关问题