Extended NEWS 和 Partials 未呈现

Extended NEWS and Partials is not rendering

我使用扩展 NEWS 的扩展程序。

这是我的模板文件设置

plugin.tx_news {
view {
    event {
        templateRootPath = fileadmin/templates/news/events/Templates
        partialRootPath = fileadmin/templates/news/events/Partials
    }
}}

action 是 EventList,模板 fileadmin/templates/news/events/Templates/EventList。html 渲染正常。

在那个模板中,我用

调用了一个部分
<f:for each="{news}" as="newsItem" iteration="iterator">
    <f:debug>{newsItem}</f:debug>
    <f:render partial="Eventlist/Item" arguments="{newsItem: newsItem,settings:settings,iterator:iterator}" />
</f:for>

f:debug给我消息。

文件 fileadmin/templates/news/events/Partials/EventList/Item。html 存在。

对此有任何想法。

TYPO3 7.6.29 新闻 6.1.1

您的设置错别字模板的两个注释:

plugin.tx_news {
    view {
        event {
            // use *Paths (plural) with a higher number
            // but maybe you meant constants, then the singular is alright
            templateRootPaths.10 = fileadmin/templates/news/events/Templates
            partialRootPaths.10 = fileadmin/templates/news/events/Partials
        }
    // never ever!!!! try to close multiple brackets in one line
    // TYPO3 recognizes only brackets at the beginning of a line
    // sidenote: the same for multiline comments: 
    //           '/*' and '*/' only at the beginning of a line
    }
}

正如 georg 已经评论的那样:您的错误可能是您的部分路径中 EventList 的正确拼写。

您可能会通过切换到开发模式 (Installtool) 并在您的错字设置中进行配置来获得更多错误信息:

config.contentObjectExceptionHandler = 0