Typo3 fluidcontent作为容器不呈现
我正在尝试建立一个基于von TYPO3 6.2的带有通量和流体模板引擎的小型网站。 我使用:Typo3 fluidcontent作为容器不呈现,typo3,fluid,Typo3,Fluid,我正在尝试建立一个基于von TYPO3 6.2的带有通量和流体模板引擎的小型网站。 我使用: 液体:6.2 流量:7.2.1 fluidpages 3.2.3 fluidcontent 4.2.2 fluidcontent_核心:1.1.3 vhs:2.3.3 建造商:0.18.0 我已经使用了一个提供者扩展的生成器,我已经成功地制作了页面模板和内容模板。 但当我尝试使用内容元素作为内容容器时,它将不会被呈现 我在这里读过类似的文章和文档,但我找不到解决方案 包括fluidcontent_co
液体:6.2 流量:7.2.1 fluidpages 3.2.3 fluidcontent 4.2.2 fluidcontent_核心:1.1.3 vhs:2.3.3 建造商:0.18.0 我已经使用了一个提供者扩展的生成器,我已经成功地制作了页面模板和内容模板。 但当我尝试使用内容元素作为内容容器时,它将不会被呈现 我在这里读过类似的文章和文档,但我找不到解决方案 包括fluidcontent_core的静态TS 我也抄了这句话
$GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'] = array('fluidcontentcore/Configuration/TypoScript/');
此外,配置
以下是我的最小Conatinertemplate:
div xmlns="http://www.w3.org/1999/xhtml" lang="en"
xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers"
xmlns:flux="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers">
<f:layout name="Content" />
<f:section name="Configuration">
<flux:form id="btContainer" label="UpContainer" options="{group: 'stth'}">
</flux:form>
<flux:grid>
<flux:grid.row>
<flux:grid.column name="Col2" label="Inhalte" />
</flux:grid.row>
</flux:grid>
</f:section>
<f:section name="Preview">
<!-- If you wish, place custom backend preview content here -->
</f:section>
<f:section name="Main">
<div class="container addedClass">
<f:comment><flux:content.render area="Col2" /></f:comment>
<v:content.render column="Col2" />
</div>
</f:section>
第二个对我来说是新的
然后我在my Provider扩展中复制了我的容器模板:是的,它可以工作
我试图在最初的TYPO3实例中使用第二行AdditionalConfiguration,但在那里它不起作用。因此,如果这是解决方案,我就不是舒尔。也许有人更有洞察力
再次感谢您的帮助。我发现您的代码中有一些错误: 你的
代码在
之外,它应该在里面。请检查下面的完整代码:
<div xmlns="http://www.w3.org/1999/xhtml"
xmlns:flux="http://fedext.net/ns/flux/ViewHelpers"
xmlns:v="http://fedext.net/ns/vhs/ViewHelpers"
xmlns:f="http://typo3.org/ns/fluid/ViewHelpers">
<f:layout name="Content" />
<f:section name="Configuration">
<flux:form id="btContainer" label="UpContainer" options="{group: 'Custom elements'}">
<flux:grid>
<flux:grid.row>
<flux:grid.column name="Col2" style="width: 100%" label="Inhalte" ></flux:grid.column>
</flux:grid.row>
</flux:grid>
</flux:form>
</f:section>
<f:section name="Preview">
<flux:widget.grid />
</f:section>
<f:section name="Main">
<div class="container addedClass">
<flux:content.render render="1" area="Col2" />
</div>
</f:section>
</div>
我发现您的代码中有一些错误: 你的
代码在
之外,它应该在里面。请检查下面的完整代码:
<div xmlns="http://www.w3.org/1999/xhtml"
xmlns:flux="http://fedext.net/ns/flux/ViewHelpers"
xmlns:v="http://fedext.net/ns/vhs/ViewHelpers"
xmlns:f="http://typo3.org/ns/fluid/ViewHelpers">
<f:layout name="Content" />
<f:section name="Configuration">
<flux:form id="btContainer" label="UpContainer" options="{group: 'Custom elements'}">
<flux:grid>
<flux:grid.row>
<flux:grid.column name="Col2" style="width: 100%" label="Inhalte" ></flux:grid.column>
</flux:grid.row>
</flux:grid>
</flux:form>
</f:section>
<f:section name="Preview">
<flux:widget.grid />
</f:section>
<f:section name="Main">
<div class="container addedClass">
<flux:content.render render="1" area="Col2" />
</div>
</f:section>
</div>
flux:grid.column上不需要colPos,但这可能会导致冲突。你在数据库中看到了什么?此外,还可以使用fluidcontent\u core。我假设您已经为fluidcontent\u核心插入了ts,并禁用了css\u样式的内容?(甚至卸载css_样式的_内容?)是的,我在主TS模板->编辑整个模板记录->包括中插入了fluidcontent_核心的TS,但我没有安装css_样式的_内容;我甚至从LocalConfiguration.php中删除了这一行,并再次测试->相同的效果。我看不出我在用colPos,你能告诉我在哪里用吗?数据库:我不是舒尔,我应该在哪个表中搜索:我现在在我的容器“Inhalte”中放置了一个常规文本CE;文本可以在tt_内容中找到,但不能在CF_fluidcontent中找到。这是正确的吗?cf_u是缓存表查找tt_内容(因为它就是这样)在flux:grid.column上不需要colPos,但这可能会产生冲突。你在数据库中看到了什么?此外,还可以使用fluidcontent\u core。我假设您已经为fluidcontent\u核心插入了ts,并禁用了css\u样式的内容?(甚至卸载css_样式的_内容?)是的,我在主TS模板->编辑整个模板记录->包括中插入了fluidcontent_核心的TS,但我没有安装css_样式的_内容;我甚至从LocalConfiguration.php中删除了这一行,并再次测试->相同的效果。我看不出我在用colPos,你能告诉我在哪里用吗?数据库:我不是舒尔,我应该在哪个表中搜索:我现在在我的容器“Inhalte”中放置了一个常规文本CE;文本可以在tt_内容中找到,但不能在CF_fluidcontent中找到。这是否正确?cf_u是缓存表在tt_内容中查找(因为它就是这样)我将“”放在“”中,但这并不能解决问题。我还尝试了“render=1”,但什么也没发生。我想知道是否有更好的调试方法——一种分步测试?事实上,我可以在FE中看到'div class=“container addedClass”,这表明至少呈现了主要部分,但没有呈现“I put”“in”的内容,但这并不能解决问题。我还尝试了“render=1”,但什么也没发生。我想知道是否有更好的调试方法——一种分步测试?事实上,我可以在FE中看到'div class=“container addedClass”,这表明至少呈现了主要部分,但没有呈现''
<div xmlns="http://www.w3.org/1999/xhtml"
xmlns:flux="http://fedext.net/ns/flux/ViewHelpers"
xmlns:v="http://fedext.net/ns/vhs/ViewHelpers"
xmlns:f="http://typo3.org/ns/fluid/ViewHelpers">
<f:layout name="Content" />
<f:section name="Configuration">
<flux:form id="btContainer" label="UpContainer" options="{group: 'Custom elements'}">
<flux:grid>
<flux:grid.row>
<flux:grid.column name="Col2" style="width: 100%" label="Inhalte" ></flux:grid.column>
</flux:grid.row>
</flux:grid>
</flux:form>
</f:section>
<f:section name="Preview">
<flux:widget.grid />
</f:section>
<f:section name="Main">
<div class="container addedClass">
<flux:content.render render="1" area="Col2" />
</div>
</f:section>
</div>