FAL 文件标题不会显示在 front-end 和文件 collection "folder from Storage" 中
FAL file title won't show in front-end with file collection "folder from Storage"
.
你好
很难解释...
如果您使用带有模块 "file links" 的 TYPO3 7.6(w. fluid styled content
),您可以上传单个文件,但您也可以使用 "file collection" 来组织您的下载量在 sys-folder.
"file collections" 共有三种不同类型。 1. Static selection of files
和 2. Folder from Storrage
和 3. Select by category
.
现在您已使用新的标题和描述上传和编辑您的 FAL-files(元数据,下图)。这些领域,例如{file.title}
将与 fluid_styled_content
(Uploads.html) 一起显示,如果您使用的是单个下载或文件 collection static selection of files
,但 不会,如果您使用 Folder from storrage
!标题不会显示,您只会看到 {file.name}
..?
我使用的是具有额外条件的标准 Uploads.html
表格 FSC。
测试 <f:debug>{file.title}</f:debug>
,见下文。通过 "folder from storrage" 的文件中没有标题。
...
<f:if condition="{file.title}">
<f:then>
{file.title}
</f:then>
<f:else>
{file.name}
</f:else>
</f:if>
...
它是 TYPO3 8
的错误还是功能?
我希望我的图片能更好地解释这种行为。
有一个 TYPO3 Core Bug,但现在已修复 (TYPO3 7.6.15
) - 更新核心和 Fluid Styled Content
-模板 Uploads.html
第 26 行
<a href="{file.publicUrl}"{f:if(condition:data.target,then:' target="{data.target}"')}>
<span class="ce-uploads-fileName">
<f:if condition="{file.properties.title}">
<f:then>
{file.properties.title}
</f:then>
<f:else>
{file.name}
</f:else>
</f:if>
</span>
</a>
感谢TYPO3核心开发团队! See revision.
.
你好 很难解释...
如果您使用带有模块 "file links" 的 TYPO3 7.6(w. fluid styled content
),您可以上传单个文件,但您也可以使用 "file collection" 来组织您的下载量在 sys-folder.
"file collections" 共有三种不同类型。 1. Static selection of files
和 2. Folder from Storrage
和 3. Select by category
.
现在您已使用新的标题和描述上传和编辑您的 FAL-files(元数据,下图)。这些领域,例如{file.title}
将与 fluid_styled_content
(Uploads.html) 一起显示,如果您使用的是单个下载或文件 collection static selection of files
,但 不会,如果您使用 Folder from storrage
!标题不会显示,您只会看到 {file.name}
..?
我使用的是具有额外条件的标准 Uploads.html
表格 FSC。
测试 <f:debug>{file.title}</f:debug>
,见下文。通过 "folder from storrage" 的文件中没有标题。
...
<f:if condition="{file.title}">
<f:then>
{file.title}
</f:then>
<f:else>
{file.name}
</f:else>
</f:if>
...
它是 TYPO3 8
的错误还是功能?
我希望我的图片能更好地解释这种行为。
有一个 TYPO3 Core Bug,但现在已修复 (TYPO3 7.6.15
) - 更新核心和 Fluid Styled Content
-模板 Uploads.html
第 26 行
<a href="{file.publicUrl}"{f:if(condition:data.target,then:' target="{data.target}"')}>
<span class="ce-uploads-fileName">
<f:if condition="{file.properties.title}">
<f:then>
{file.properties.title}
</f:then>
<f:else>
{file.name}
</f:else>
</f:if>
</span>
</a>
感谢TYPO3核心开发团队! See revision.