我已经在FED和Flux中使用了Fluid ContentElements,并且想尝试将我现有的元素移植到TYPO3 6.1.5。
我已经阅读了最近与美联储的变化,因此安装了EXT:通量和EXT:fluidcontent,建议在项目主页上。
在我以前的FCEs都没有一次开箱即用之后,我尝试创建一个非常简单的元素,其中只包含一个文本输入字段作为概念的证明,并学习FCEs的新方法。
这是我的密码:
(TypoScript和HTML改编自Typo3 V6:如何创建内容元素容器?(没有电视))
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:myext/res/{$global.project_path}/assets/html/fluidCE/Templates/中的HTML模板
{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>我现在在内容元素中获得的内容如下:
因此,我的问题如下:
任何帮助都很感谢,非常感谢。
我向你问好,格里戈里
编辑:我现在已经启用了Flux并获得了以下消息:
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)发布于 2013-09-20 08:06:53
因此,在#typo3@chat.freenode.net的IRC-会话之后,这些家伙(kudos @cedricziel和@amkoroew)和我发现,首先,EXT:flux和EXT:fluidcontent的TER不起作用,但来自GitHub的是:
模板文件的路径需要遵守默认的extbase约定,即EXT:myext/Resources/Private/Templates/Content/myFCE.html
(有一种使用非标准路径的方法,但我还没有尝试过)
EXT:fluidcontent还期望TypoScript设置如下:
plugin {
tx_myext {
view {
label = Fluid Content Elements
extensionKey = myext
templateRootPath = EXT:myext/Resources/Private/Templates
}
}
}在更新扩展名并将文件移动到其新位置后,FCE将按预期工作。
https://stackoverflow.com/questions/18890510
复制相似问题