Jos*_*atz 0 typo3 fluid typoscript fal
sysext:filemetadata
被激活; 图像(fal引用)存放在页面资源(pages.media)中.
目前我已知2个选项与TYPO3页面相关:
实际上(TYPO3 7.x和8.x)是一种常见的/仅核心的解决方案,可以使用创建者,版权等附加属性(元数据)来呈现这些图像.
小智 6
我会采取下一个方法:
Typo脚本
page.10 = FLUIDTEMPLATE
page.10 {
dataProcessing {
10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
10 {
references.fieldName = media
}
}
...
}
Run Code Online (Sandbox Code Playgroud)
流体
<f:for each="{files}" as="file">
<div class="media">
<figure>
<f:media file="{file}" />
<figcaption>
{file.description}<br />
author: {file.properties.creator}<br />
copyright: {file.properties.copyright}
</figcaption>
</figure>
</div>
</f:for>
Run Code Online (Sandbox Code Playgroud)
...
要查找所有可能的sys_file_reference
和sys_file_metadata
性能只是添加<f:debug>{file.properties}</f:debug>
内<f:for ...</f:for>
.
归档时间: |
|
查看次数: |
1778 次 |
最近记录: |