1

我是流体内容的新手。为了深入了解这些内容,我使用了文档。但现在我到了一个我不知道我的错在哪里的时候。

我添加了 HTML 布局的 Skeltron。但现在我想知道为什么不呈现设置到 Typo3 后端的内容。

页面.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 骨架,还显示了 fgfgfgffg、sdfsdfsdf 和 Main 渲染。只有 render.content 不起作用。

有人有想法吗?

Typo 6.2.4 - Apache - Ubuntu。

谢谢您的帮助!

4

1 回答 1

1

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

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

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

于 2014-08-06T08:19:39.993 回答