首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >EXT:fluidcontent不接受元素配置

EXT:fluidcontent不接受元素配置
EN

Stack Overflow用户
提问于 2013-09-19 09:08:21
回答 1查看 901关注 0票数 1

我已经在FED和Flux中使用了Fluid ContentElements,并且想尝试将我现有的元素移植到TYPO3 6.1.5。

我已经阅读了最近与美联储的变化,因此安装了EXT:通量和EXT:fluidcontent,建议在项目主页上。

在我以前的FCEs都没有一次开箱即用之后,我尝试创建一个非常简单的元素,其中只包含一个文本输入字段作为概念的证明,并学习FCEs的新方法。

这是我的密码:

(TypoScript和HTML改编自Typo3 V6:如何创建内容元素容器?(没有电视))

TypoScript

代码语言:javascript
复制
<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:myext/res/{$global.project_path}/assets/html/fluidCE/Templates/中的HTML模板

代码语言:javascript
复制
{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>

我现在在内容元素中获得的内容如下:

FluidCE后端形式

因此,我的问题如下:

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

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

我向你问好,格里戈里

编辑:我现在已经启用了Flux并获得了以下消息:

代码语言:javascript
复制
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)
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-09-20 08:06:53

因此,在#typo3@chat.freenode.net的IRC-会话之后,这些家伙(kudos @cedricziel和@amkoroew)和我发现,首先,EXT:fluxEXT:fluidcontent的TER不起作用,但来自GitHub的是:

模板文件的路径需要遵守默认的extbase约定,即EXT:myext/Resources/Private/Templates/Content/myFCE.html

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

EXT:fluidcontent还期望TypoScript设置如下:

代码语言:javascript
复制
plugin {
    tx_myext {
        view {
            label = Fluid Content Elements
            extensionKey = myext
            templateRootPath = EXT:myext/Resources/Private/Templates
        }
    }
}

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

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18890510

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档