Fluid Powered TYPO3 FLUX Fluidcontent - No Output

2019-07-21 06:54发布

问题:

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.

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.

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

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

回答1:

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/');