[英]TYPO3 Fluid File Collection Metadata
I want to access files and associated metadata from a folder based file collection, but debug says metaDataLoaded=false and metaDataProperties is empty. 我想访问基于文件夹的文件集合中的文件和关联的元数据,但调试显示metaDataLoaded = false,metaDataProperties为空。
Here my code fluid code from my DCE: 这是我来自DCE的代码流畅代码:
{namespace dce=ArminVieweg\Dce\ViewHelpers}
<f:layout name="Default" />
<f:section name="main">
<f:for each="{field.fileCollection}" as="collection">
<f:debug>{collection}</f:debug>
<f:for each="{collection.items}" as="item">
<f:format.html>{item.name}</f:format.html>
<f:debug>{item.metaDataProperties}</f:debug>
</f:for>
</f:for>
</f:section>
Why is the metadata not loaded? 为什么未加载元数据? How can i access the metadata of a file? 如何访问文件的元数据?
thanx in advance, 提前谢谢
Jan 一月
使用properties
,将图像和元数据的所有属性合并在一起。
<f:debug>{item.properties}</f:debug>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.