Zum Inhalt springen

Show 'not in menu' pages in sitemap

Sitemaps in TYPO3 are a special type of menu and are therefore based on the TypoScript HMENU object. If the option "not in menu" is selected in the page properties, the page is no longer accessible via the menu (and therefore also the sitemap) but only via a direct link, for example.

With two lines of TypoScript, the pages can be displayed in the sitemap even though they are hidden in the menu:

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

The code is inserted as an extension template on the sitemap page.

However, the includeNotInMenu property cannot be combined with excludeUidList, so that individual 'not in menu' pages can still be hidden. If includeNotInMenu is not used for the sitemap, individual pages can be excluded from the sitemap:

tt_content.menu.20.2.excludeUidList = 1,2,3

This page contains automatically translated content.

Updated: 09.04.2025