我正在尝试让 tx_news 链接处理程序运行。问题:新闻条目位于两个 sys 文件夹中。
我尝试过:
# tx_news is an identifier, don't change it after links have been created
TCEMAIN.linkHandler.tx_news {
handler = TYPO3\CMS\Backend\LinkHandler\RecordLinkHandler
# A translatable label can be used with LLL:EXT:theme/locallang.xml:label
label = News
configuration {
table = tx_news_domain_model_news
# Default storage pid
storagePid = 123,456
# Hide the page tree by setting it to 1
hidePageTree = 0
}
scanAfter = page
}
但仅适用于第二个ID。
有什么技巧可以解决这个问题吗? 谢谢!
来自两个系统文件夹的新闻应该在链接处理程序中可用。
这应该可以完成工作:
# tx_news is an identifier, don't change it after links have been created
TCEMAIN.linkHandler.tx_news {
handler = TYPO3\CMS\Backend\LinkHandler\RecordLinkHandler
# A translatable label can be used with LLL:EXT:theme/locallang.xml:label
label = News
configuration {
table = tx_news_domain_model_news
# Default storage pid
storagePid = 123
pageTreeMountPoints = 123,456
# Hide the page tree by setting it to 1
hidePageTree = 0
}
scanAfter = page
}