【问题标题】:Typo3 v9 Show "hidden" pages in sitemapTypo3 v9 在站点地图中显示“隐藏”页面
【发布时间】:2018-11-08 11:00:04
【问题描述】:

我目前正在将一个网站从 Typo3 7 更新到 Typo3 9。该网站包含一个站点地图,我还想显示标记为“不在菜单中”的页面。在旧版本中,这可以通过以下排版来实现:

tt_content.menu.20.2.includeNotInMenu = 1
tt_content.menu.20.2.excludeDoktypes = 6

但是,这在 v9 中不再起作用,我在 Google 上找不到任何帮助。

【问题讨论】:

    标签: typo3 typoscript typo3-9.x


    【解决方案1】:

    TYPO3 9 使用 fluid_styled_content 来渲染内容,而不是 css_styled_content。站点地图使用MenuProcessor 呈现。 MenuProcessor 中提供了这些相同的选项。您可以使用以下 TypoScript 设置它们:

    tt_content.menu_sitemap.dataProcessing.10 {
      includeNotInMenu = 1
      excludeDoktypes = 6
    }
    

    【讨论】:

      【解决方案2】:

      上述解决方案对我不起作用。我正在使用 Typo3 9.5.19 以下工作:

      添加到常量

      plugin.tx_seo.settings.xmlSitemap.sitemaps.pages.additionalWhere = no_index = 0 AND canonical_link = '' AND nav_hide = 0
      

      注意:这会在隐藏页面下停止子页面。所有页面都需要标记为隐藏

      【讨论】:

        猜你喜欢
        • 2020-05-11
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-06-29
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多