流体页面模板:后端布局不会改变

时间:2015-01-06 10:43:04

标签: 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>

我在“页面布局”标签中选择了此模板,但布局是默认的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/    
}

1 个答案:

答案 0 :(得分:5)

有同样的问题。

<强>解决方案: 修改根页面 - &gt;外观标签 - &gt;后端布局 - &gt; Fluidpages

相关问题