Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Typo3 未呈现扩展新闻和片段_Typo3_Fluid_Tx News - Fatal编程技术网

Typo3 未呈现扩展新闻和片段

Typo3 未呈现扩展新闻和片段,typo3,fluid,tx-news,Typo3,Fluid,Tx News,我使用一个扩展来扩展新闻 这是我的模板文件设置 plugin.tx_news { view { event { templateRootPath = fileadmin/templates/news/events/Templates partialRootPath = fileadmin/templates/news/events/Partials } }} 操作是EventList,模板文件admin/templates/news/events

我使用一个扩展来扩展新闻

这是我的模板文件设置

plugin.tx_news {
view {
    event {
        templateRootPath = fileadmin/templates/news/events/Templates
        partialRootPath = fileadmin/templates/news/events/Partials
    }
}}
操作是EventList,模板文件admin/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:给我一个消息

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

有什么想法吗

类型3 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已经评论的那样:您的bug可能是您的partial路径中EventList的正确拼写

通过切换到开发模式Installtool并在键入脚本设置中进行配置,您可能会获得更多错误信息:

config.contentObjectExceptionHandler = 0

事件列表vs事件列表,L vs L