Issue Bug Closed

#108025Hide child pages in page tree [php_tree_stop] affects the sitemap

Florian Müller 11/10/25, 11:02 updated 03/31/26, 09:00

Description

The flag ‘Hide child pages in page tree [php_tree_stop]’ in the Behaviour tab affects the XML sitemap

\TYPO3\CMS\Seo\XmlSitemap\PagesXmlSitemapDataProvider::getPages uses \TYPO3\CMS\Core\Domain\Repository\PageRepository::getDescendantPageIdsRecursive to load the page tree. This method in turn uses \TYPO3\CMS\Core\Domain\Repository\PageRepository::getSubpagesRecursive, which stops building the tree if the php_tree_stop flag is set.

According to the description in https://docs.typo3.org/m/typo3/tutorial-editors/12.4/en-us/Pages/PageProperties/Index.html#pages-properties-behaviour, the flag should only affect the backend. (can not find the docs for 13.4 for this flag).

The simple solution should be a backend check in \TYPO3\CMS\Core\Domain\Repository\PageRepository::getSubpagesRecursive, but I cannot assess the further implications.

Reviews 2

History 26

  1. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-12-22T09:15:08+00:00" > 12/22/25, 09:15 </span>

    Applied in changeset commit:f9dd9280eb7ccf3dd3f3fb850363f07b62bf21e3.