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