首页 文章

流体动力TYPO3 FLUX Fluidcontent - 前端无输出?

提问于
浏览
2

我用Fluid powered TYPO3制作了一个TYPO3-Installation 6.2.9 - 预配置分发的第一步“Site”没问题 . 我的网站/页面模板已安装,我添加了所有TypoScript的东西 .

现在我想在FLUX中使用FLUIDCONTENT(FCE) . 我添加了一个新的模板文件 TeaserOne.html ,我尝试使用分发 Content.html 中的布局 .

Now I can see and write into my input-fields in Backend, but I've no Output in Frontend?! What else do I need?

我只看到内容元素 Headers . 不是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 /资源/个人/模板/ 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 /资源/个人/设计/ Content.html

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

Backend

File structure

typoscript

1 回答

  • 2

    似乎缺少CType fluidcontent_content的前端渲染配置 . 您是否在typo3conf / AdditionalConfiguration.php中添加了以下内容:

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

相关问题