EXT:fluidcontent不接受元素配置

时间:2013-09-19 09:08:21

标签: typo3 fluid flux fedext

我已经将Fluid ContentElements与FED和Flux一起使用,并希望尝试将现有元素移植到TYPO3 6.1.5。

我已经阅读了最近有关FED的更改,因此在项目主页上安装了EXT:flux和EXT:fluidcontent。

在我的旧FCE没有开箱即用之后,我试图创建一个非常简单的元素,只包含一个文本输入字段作为概念验证,并学习FCE的新方法。< / p>

这是我的代码:

(TypoScript和HTML改编自Typo3 V6: How to create a content element container? (without TV)

的TypoScript

<INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/static/setup.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:fluidcontent/Configuration/TypoScript/setup.txt">

plugin.tx_fed {
    fce.myext {
        templateRootPath = EXT:myext/res/{$global.project_path}/assets/html/fluidCE/Templates/
    }
}

EXT中的HTML模板:myext / res / {$ global.project_path} / assets / html / fluidCE / Templates /

{namespace flux=Tx_Flux_ViewHelpers}

<div xmlns="http://www.w3.org/1999/xhtml" lang="en"
 xmlns:flux="http://fedext.net/ns/flux/ViewHelpers"
 xmlns:f="http://typo3.org/ns/fluid/ViewHelpers">

<f:layout name="Content" />

<f:section name="Configuration">
    <flux:flexform id="textfoo" label="TextFoo">
        <flux:flexform.field.input name="textfoo" label="textfoo" />
    </flux:flexform>
</f:section>

<f:section name="Preview">
    <h2>{textfoo}</h2>
</f:section>

<f:section name="Main">
    <h1>{textfoo}</h1>
</f:section>

</div>

我现在在Content-Element中获得的内容如下:

FluidCE Backend Form

所以我的问题如下:

  • 为什么我的文字输入字段缺失?
  • “标题”字段来自哪里?

非常感谢任何帮助,非常感谢。

祝你好运, 格里戈里

编辑:我现在启用了Flux Debug并收到以下消息:

Flux Debug
Flux View Tx_Flux_MVC_View_ExposedTemplateView is able to read stored configuration from file /Users/username/workspace/projectname/typo3conf/ext/myext/res/projectname/assets/html/fluidCE/Templates/TextFoo.html

Flux Debug
The template file "" was not found. (1366824347)

1 个答案:

答案 0 :(得分:2)

所以,在#typo3@chat.freenode.net举行的IRC会议之后,我们(感谢@cedricziel和@amkoroew)和我想出了EXT:flux和{{TER}版本的第一个版本{1}}无效,但GitHub的那些是:

模板文件的路径需要遵守默认的extbase约定,即EXT:fluidcontent

(有一种方法可以使用非标准路径,但我还没有尝试过)

EXT:myext/Resources/Private/Templates/Content/myFCE.html也期望TypoScript设置如下:

EXT:fluidcontent

更新扩展并将文件移动到新位置后,FCE按预期工作。