【发布时间】:2021-05-02 17:22:48
【问题描述】:
我已将文件sysext/fluid_styled_content/Resources/Private/Partials/Media/Type/Image.html 克隆到我自己的模板目录中,并将常量设置为使用该路径。 这很好用。
现在我想另外输出图像的“源”元数据(您可以从文件列表或其他地方编辑)。
在{file} 的调试输出中,我可以在{file.originalFile.metaDataAspect.source} 分支下看到此数据。
但是如果我想使用这些数据来输出,则会出现错误消息Cannot access private property TYPO3\CMS\Core\Resource\File::$metaDataAspect。
如何在修改后的 fluid_styled_content 模板中访问这些数据?
【问题讨论】:
标签: typo3 typo3-10.x fluid-styled-content