Tor*_*ben 1 typo3 fluid typo3-6.2.x
我已经按照https://fluidtypo3.org/documentation/templating-manual/templating/creating-templates/page-template.html创建了一个包含所有模板和布局的扩展程序.我的工作正常,我的后端布局不会改变我在模板中定义的网格布局:
{namespace vhs=FluidTYPO3\Vhs\ViewHelpers}
{namespace flux=FluidTYPO3\Flux\ViewHelpers}
<f:layout name="Default" />
<f:section name="Configuration">
<flux:form id="Default" label="Homepage">
<flux:grid>
<flux:grid.row>
<flux:grid.column colPos="0" name="Content" label="Main content" />
<flux:grid.column colPos="1" name="Sidebar" label="Sidebar" />
</flux:grid.row>
</flux:grid>
</flux:form>
</f:section>
<f:section name="Main">
<div id="main_content">
<vhs:content.render column="0" />
</div>
<div id="aside">
<vhs:content.render column="1" />
</div>
</f:section>
Run Code Online (Sandbox Code Playgroud)
我在"页面布局"选项卡中选择了此模板,但布局是默认的4网格布局.我忘记了什么吗?
我的setup.txt:
plugin.tx_myext.view {
templateRootPath = EXT:tx_myext/Resources/Private/Templates/
partialRootPath = EXT:tx_myext/Resources/Private/Partials/
layoutRootPath = EXT:tx_myext/Resources/Private/Layouts/
}
Run Code Online (Sandbox Code Playgroud)