我是不熟悉流体内容的人。为了了解这些内容,我使用了文档。但是现在我不知道我的错在哪里。
我已经添加了HTML布局的Skeltron。但是现在我想知道为什么Typo3后端中设置的内容不被渲染。
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骨架,还显示了fgfgfgffg,sdfsdfsdf和Main渲染。仅render.content不起作用。
有人有主意吗?
Typo 6.2.4-Apache-Ubuntu
谢谢您的帮助!
您没有在代码示例中包含它,以防万一:您是否还记得在模板代码中同时包含Flux和VHS的名称空间?
{namespace v=FluidTYPO3\Vhs\ViewHelpers} {namespace flux=FluidTYPO3\Flux\ViewHelpers}
在两个模板中。示例代码假定您使用的是VHS和Flux的最新版本(例如,基于PHP名称空间的版本)。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句