Issue Task Under Review

#111521Remove getData type "global" from ContentObjectRenderer

Torben Hansen 11/21/26, 08:43 updated 11/21/26, 08:45

Description

The TypoScript getData type global allows reading arbitrary PHP global variables, e.g. data = global:TYPO3_CONF_VARS|SYS|sitename.

The type is a leftover from times when frontend state was kept in globals such as $GLOBALS['TSFE']. Nowadays this state lives in request attributes, the Context API and the site configuration, all of which are accessible via dedicated getData types:

  • request / gp – request attributes and parameters
  • context – Context aspects
  • site, siteLanguage, siteSettings – site configuration
  • getenv, getIndpEnv – environment and server values
  • applicationcontext – application context
  • page, level*, fullRootLine – page and rootline data

Since all common use cases are covered by these types, global is no longer needed and only couples TypoScript to the internal layout of PHP globals.

The getData type global should be removed. Integrators requiring a value not provided by an existing type can migrate to one of the types above or provide a custom value using the PSR-14 event AfterGetDataResolvedEvent.

Reviews 1

History 01