Search code examples
typo3typoscripttypo3-9.x

Typo3 v9 Show "hidden" pages in sitemap


I am currently updating a website from Typo3 7 to Typo3 9. The Website includes a Sitemap, which I would like to also show pages that are marked as "Not in Menus". On the old version, this could be achieved usnig the following bit of typoscript:

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

This, however does not work anymore in v9 and I can't find any help on Google.


Solution

  • TYPO3 9 uses fluid_styled_content to render content instead of css_styled_content. The sitemap is rendered using a MenuProcessor. These same options are available in the MenuProcessor. You can set them using the following TypoScript:

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