自定义内容元素中带有资产字段的文件处理器

FilesProcessor with asset filed in custom content elelemt

在以下脚本中:

tt_content.myFCE {
    dataProcessing {
        10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
        10 {
            references.fieldName = image
            as = files
        }
        20 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
        20 {
            references.fieldname = assets
            as = myFiles
        }
    }
}

第一部分(索引 10)有效,但第二部分(索引 20)无效。我得到一个空数组。似乎 FilesProcessor 无法访问存储在资产中的图像。

是否可以从现场资产中获取资产?

谢谢!

Bernd Wilke 在他的评论中写道:fieldname 中有一个拼写错误 - 它应该是 fieldName ...我完全瞎了,直到他的评论才看到它。真可惜... :-) 更正拼写错误后,一切都按预期工作。