流体动力 TYPO3 FLUX Fluidcontent - 前端没有输出? [英] Fluid Powered TYPO3 FLUX Fluidcontent - No Output in Frontend?

查看:23
本文介绍了流体动力 TYPO3 FLUX Fluidcontent - 前端没有输出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 流体驱动 TYPO3 制作了 TYPO3-Installation 6.2.9 - Pre 的第一步-配置的分发站点"很好.我的站点/页面模板已安装,并且我添加了所有 TypoScript 内容.

I've made a TYPO3-Installation 6.2.9 with Fluid powered TYPO3 - the first steps with the Pre-configured Distribution "Site" were fine. My Site/Page-Template is installed and I added all the TypoScript stuff.

现在我想将 FLUIDCONTENT (FCE) 与 FLUX 一起使用.我添加了一个新的模板文件 TeaserOne.html 并尝试使用 Distribution Content.html 中的布局.

Now I want to use FLUIDCONTENT (FCE) with FLUX. I've added a new Template-File TeaserOne.html and I try to use the Layout from the Distribution 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"是通过预配置的分​​发包含的.

I only see the Content-Element Headline. Not the FLEXform. I'm using the latest Versions of flux (7.1.2), fluidpages (3.1.2), fluidcontent (4.1.1), fluid_core (1.0.2) and vhs (2.1.4). The static template "fluidcontent_core" was included via pre-configured Distribution.

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" />

推荐答案

好像缺少CType fluidcontent_content 的前端渲染配置.您是否将以下内容添加到您的typo3conf/AdditionalConfiguration.php:

It seems that the frontend rendering configuration for the CType fluidcontent_content is missing. Did you add the following to your typo3conf/AdditionalConfiguration.php:

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

这篇关于流体动力 TYPO3 FLUX Fluidcontent - 前端没有输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆