You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在面包屑中隐藏tx:news的单条新闻详情页?

问题

我想让面包屑里不显示空的新闻详情页。按照官方文档的说明配置了面包屑,之后按照文档建议禁用了该页面的“在菜单中启用”设置,但面包屑仍显示为:

Home > News > Single news > This is the name of the news

预期效果应该是:

Home > News > This is the name of the news

求解决思路。

解决方案

我使用搭配MenuProcessor的FLUIDTEMPLATE,配置如下:

...
30 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
30 {
   special = rootline
   special.range = 0|-1
   includeNotInMenu = 0
   as = breadcrumbMenu
}

40 = GeorgRinger\News\DataProcessing\AddNewsToMenuProcessor
40 {
   menus = breadcrumbMenu
   includeNotInMenu = 0
}
...

添加includeNotInMenu = 0配置后,再在“新闻详情页”的页面设置中启用“在菜单中启用”,该页面就不会出现在面包屑里了,最终显示效果符合预期:

Home > News > This is the name of the news

内容的提问来源于stack exchange,提问作者Urs Bo

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.29 08:52:22