Issue Bug New Orphaned

#107308PageTSconfig won't get inherited to site if included in rootline before site

J. Peter M. Schuler 08/18/25, 13:48 updated 08/23/25, 15:38

Description

  1. introduced the option to include PageTSconfig to sites. However it seems that this also removes the option to inherit PageTSconfig from higher up pages in the rootline if those aren’t part of a site (i.e. defining a site/rootpage drops all includes on pids above).

I have a page tree where I include PageTSconfig (via pages.tsconfig_includes) above the actual sites/rootpages (e.g. have multiple parent “template” or “configuration” nodes and the actual Sites below that). The PageTSconfig is included in the parent nodes correctly, but on the actual sites/rootpages below, the formerly included PageTSconfig is not available.

So the sitestructure is like

A (PageTSconfig definition)
`A1
 `A1.1 (Site, Rootpage)

If I look into Module PagesTSconfig / Included pageTSconfig in 13LTS it doesn’t show the entries for pagesTsConfig-page-<pid of page A>-includes-0 which were available in 12LTS. In that place the new “site pageTSconfig include” is there, but the former includes are missing, which would be expected to be there as well.
It seems somewhere in https://review.typo3.org/c/Packages/TYPO3.CMS/+/83586/21/typo3/sysext/core/Classes/TypoScript/IncludeTree/TsConfigTreeBuilder.php#176 there is a hiccup which focusses on sites and site subpages, but leaves out the parent pages of a site.

(Obviously I can refactor away from inheritance to site include, but nevertheless this seems like there is an bug).

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[BUGFIX] PageTSconfig won't get inherited to site if included in rootline before site Resolves: #107308 Releases: main