索引搜索列表中的标题仅包含主页的标题,而不包含 seo 标题

title in in list of indexed search contains only the title of the main page and not the seo title

TYPO3 9.7 LTS,索引搜索。我在命中列表中获得了所有页面的正确链接,但标题仅包含详细信息页面的标题,而不包含结果页面的 html-title。所以我最终得到了几十个搜索标题,如 "detail" 用于所有新闻和所有其他扩展。

在旧版本的 TYPO3 中这有效...

有人可以给我提示吗? 谢谢。

好的,经过一些研究并在 Jonas Osburg 的提示下(谢谢!)我发现了问题所在。 indexed_search 被重构为使用 TYPO3 pagetitle-API。这些行:

        if ($this->conf['indexedDocTitle']) {
            $this->contentParts['title'] = $this->conf['indexedDocTitle'];
        }

in indexer.php of indexed_search 对更改的行为负责。一个真正的肮脏黑客将评论这些行......好吧,不要这样做!

真正的解决方案似乎是在每个扩展中实现一个 PageTitleProvider,它在单个页面上显示多个数据。可以在此处找到详细的描述和示例:

https://www.richardhaeser.com/typo3-blog/using-pagetitle-api-of-typo3