为什么content.render什么都不呈现?

时间:2014-07-28 15:42:53

标签: fedext

我是流体内容的新手。为了进入这些东西,我已经使用了文档。但现在我处在一个我不知道自己错误的地方。

我添加了HTML布局的Skeltron。但是现在我想知道为什么Typo3 Backend中的内容不会被渲染。

page.html中

<f:layout name="Page" />
<f:render section="Main" />
<div id="page" class="{settings.pageClass}">
<div id="sidebar">
    <f:render section="Sidebar" />
</div>
<div id="content">
    <f:render section="Content" />
</div>
</div>`

MyPageTemplate.html

<f:layout name="Page" />
<f:section name="Configuration">
<flux:form id="fluidfluxform" label="Fluid/FluxForm" icon="{f:uri.resource(path:      'Icons/Page.gif')}">
    <!-- Input field for Fluid variable 'pageClass' -->
    <flux:field.input name="settings.pageClass" default="some-css-class" />

    <!-- Backend layout grid (TYPO3 6.x and greater only) -->
    <flux:grid>
        <flux:grid.row>
            <flux:grid.column colPos="1" name="Content" style="width: 75%" />
            <flux:grid.column colPos="0" name="Sidebar" style="width: 25%" />
        </flux:grid.row>
    </flux:grid>
    </flux:form>
    </f:section>

 <f:section name="Main">
Main render
 </f:section>

<f:section name="Content">
  <!-- Render colPos=0 in this section -->
  fdgfdgfdg
  <v:content.render column="1" />
</f:section>


<f:section name="Sidebar">
  <!-- Render colPos=1 in this section -->
  sdfsdfsdfsdfsdf
  <v:content.render column="0" />
</f:section>

添加了页面配置中的提示器扩展TypoScript。显示Page.html skeletron,并显示fgfgfgffg,sdfsdfsdf和Main渲染。只有render.content不起作用。

有人有想法吗?

错字6.2.4 - Apache - Ubuntu。

感谢您的帮助!

1 个答案:

答案 0 :(得分:1)

您不会在代码示例中包含它,以防万一:您是否记得在模板代码中包含Flux和VHS的命名空间?

{namespace v=FluidTYPO3\Vhs\ViewHelpers} {namespace flux=FluidTYPO3\Flux\ViewHelpers}

在两个模板中。示例代码假定您使用的是VHS和Flux的最新版本(例如基于PHP命名空间的版本)。

相关问题