我需要通过Typoscript创建一个tx_news实例,但当我设置起始点或限制设置时,插件不会显示在前端;如果没有这些选项,它会显示所有存储新闻。
我已经阅读了https://docs.typo3.org/typo3cms/extensions/news/AdministratorManual/BestPractice/IntegrationWithTypoScript/Index.html#add-news-by-typoscript和其他页面中的文档。我使用的是TYPO3 8.7和PHP7.1
#Remove content in section
page.10.variables.noticiasGNFA >
lib.news = USER
lib.news {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
extensionName = News
pluginName = Pi1
vendorName = GeorgRinger
switchableControllerActions {
News {
1 = list
}
}
settings < plugin.tx_news.settings
settings {
detailPid = 515
overrideFlexformSettingsIfEmpty := addToList(detailPid)
orderBy = datetime
listPid = 151
backPid = 151
disableOverrideDemand = true
templateLayout = 4
#startingpoint = 318
#limit =3
}
}
#Set new tx_news plugin in section
page.10.variables.noticiasGNFA < lib.news
当带有hashtag的任何选项的注释被删除时,它不起作用。不显示,不显示某些异常。
发布于 2019-01-25 16:25:22
如果使用的是流体模板,则可以使用<f:cObject typoscriptObjectPath="lib.news"/>
anywhere。
希望能有所帮助。
https://stackoverflow.com/questions/54356658
复制相似问题