【问题标题】:Fluid Powered TYPO3 FLUX Fluidcontent - No Output in Frontend?Fluid Powered TYPO3 FLUX Fluidcontent - 前端没有输出?
【发布时间】:2015-04-06 15:03:34
【问题描述】:

我已经使用Fluid powered TYPO3 进行了 TYPO3-Installation 6.2.9 - 使用预配置发行版“Site”的第一步很好。我的站点/页面模板已安装,并且我添加了所有 TypoScript 内容。

现在我想将 FLUIDCONTENT (FCE) 与 FLUX 一起使用。我添加了一个新的模板文件TeaserOne.html,并尝试使用来自分发版Content.html 的布局。

现在我可以在后端查看和写入我的输入字段,但我在前端没有输出?!我还需要什么?

我只看到内容元素标题。不是 FLEXform。 我正在使用flux (7.1.2)fluidpages (3.1.2)fluidcontent (4.1.1)fluid_core (1.0.2)vhs (2.1.4) 的最新版本。 静态模板“fluidcontent_core”是通过预配置的分​​发包含的。

myext/Resources/Private/Templates/TeaserOne.html

<div xmlns="http://www.w3.org/1999/xhtml" lang="en"
     xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
     f:schemaLocation="https://fluidtypo3.org/schemas/fluid-master.xsd"
     xmlns:flux="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers"
     flux:schemaLocation="https://fluidtypo3.org/schemas/flux-master.xsd">

    <f:layout name="Content" />

    <f:section name="Configuration">

        <flux:form id="fluidcontenttest" options="{icon: 'Icons/Content/Hello.gif', group: 'New Elements'}">

            <flux:field.text name="teasertext" label="hier lorem eintragen" rows="5" cols="30" required="FALSE" />

        </flux:form>

    </f:section>

    <f:section name="Preview">

        <table width="100%">
            <tr>
                <td width="30%">Ausgabe:</td>
                <td width="70%">
                    <f:format.crop maxCharacters="100">{teasertext}</f:format.crop>
                </td>
            </tr>
        </table>

    </f:section>

    <f:section name="Main">
        <h3>TEST: I am a content element! But no Output?</h3>
        <p> {teasertext} </p>
    </f:section>
</div>

myext/Resources/Private/Layouts/Content.html

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

【问题讨论】:

  • 似乎缺少 tt_content.fluidcontent 渲染。您是否在根页面(TYPO3 后端)中包含了 fluidcontent_core 静态变量?
  • 嗨,是的,静态模板“fluidcontent_core”是通过预配置的分​​发包包含的。我尝试使用“fluidbootstraptheme”,但我有定义。没有前端输出。我的安装一定有问题?
  • 能否给我一张TS设置tt_content的截图
  • 哦!在这些空白 TYPO3 安装中,我没有“tt_content TypoScript 设置”。将显示标准内容元素。在这种情况下我需要什么?对不起!
  • 我关注了来自 Claus Due 的截屏视频:vimeo.com/110469200 - 我忘记了什么吗?

标签: output typo3 frontend fluid flux


【解决方案1】:

似乎缺少 CType 流体内容内容的前端渲染配置。您是否将以下内容添加到您的typo3conf/AdditionalConfiguration.php:

<?php
$GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'] = array('fluidcontentcore/Configuration/TypoScript/');

【讨论】:

  • 就是这样。谢谢克里斯托夫。
猜你喜欢
  • 2015-04-20
  • 1970-01-01
  • 2020-11-16
  • 2015-04-14
  • 1970-01-01
  • 2016-05-07
  • 2015-05-29
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多