Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Typo3 类型3+;DCE-在后端显示图像缩略图_Typo3_Typo3 6.2.x - Fatal编程技术网

Typo3 类型3+;DCE-在后端显示图像缩略图

Typo3 类型3+;DCE-在后端显示图像缩略图,typo3,typo3-6.2.x,Typo3,Typo3 6.2.x,我正在使用Typo36.2和扩展DCE(动态内容元素) 一切正常,只是我无法在后端显示自定义内容元素的缩略图 对于前端,我使用此流体模板: <f:for each="{dce:fal(field:'image', contentObject:contentObject)}" as="fileReference" iteration="iterator"> <f:if condition="{iterator.isFirst}">

我正在使用Typo36.2和扩展DCE(动态内容元素)

一切正常,只是我无法在后端显示自定义内容元素的缩略图

对于前端,我使用此流体模板:

    <f:for each="{dce:fal(field:'image', contentObject:contentObject)}" as="fileReference" iteration="iterator">
        <f:if condition="{iterator.isFirst}">
            <f:image src="{fileReference.uid}" alt="" treatIdAsReference="1" width="140px"/>
        </f:if>
    </f:for>

它很好用。但是如果我对后端使用相同的代码(在“Bodytext预览模板(流体)”字段中),它不会输出任何内容。这可能是什么原因


顺便问一下,输出第一张图像的更优雅的方式是什么?我想我就不必使用这个for循环了?

出于某种原因,您需要在后端预览中引用“字段”而不是“字段”