【问题标题】:File list is not rendered in typo3 frontend文件列表未在typo3前端呈现
【发布时间】:2016-11-02 11:02:16
【问题描述】:

从 TYPO3 4.5 更新到 6.2 后,文件列表不再在前端呈现。

# Default PAGE object:
page = PAGE
page.typeNum = 0
page.stylesheet = fileadmin/template/design.css
page.20 = TEMPLATE
page.20 {
template = FILE
template.file = fileadmin/template/templ.html
workOnSubpart = document
subparts.cont = CONTENT
subparts.cont {
     table = tt_content
     select.orderBy = sorting
     select.where = colPos = 0
    }

这是我之前使用的 TypoScript 设置;它应该是文本(正在工作)和图像(也能正常工作)的标准渲染例程,但由于某种原因,只有一个空的 ul 块:

    <!--  File list: [begin] -->
        <ul class="csc-uploads csc-uploads-0"></ul>
    <!--  File list: [end] -->

不知道怎么回事……

【问题讨论】:

  • 如果您在 BE 中编辑文件列表 CE 会显示文件吗?
  • 是的,这些文件在后端可见,但在前端不呈现,因此,假设存在打字问题...我更新了数据库和参考索引,但仍然没有运气。跨度>

标签: typo3 upgrade typoscript typo3-6.2.x


【解决方案1】:

我发现了错误。 TYPO3 仍设置为“作为 TYPO3 4.5”兼容模式运行。再次通过升级向导,最后使用 TYPO3 6.2,现在一切正常。

底线:TYPO3 4.5 兼容模式实际上不会产生与 TYPO3 4.5 相同的输出!

【讨论】:

    猜你喜欢
    • 2019-09-08
    • 1970-01-01
    • 2023-03-25
    • 2023-02-11
    • 1970-01-01
    • 1970-01-01
    • 2017-10-29
    • 2020-06-13
    • 1970-01-01
    相关资源
    最近更新 更多