page and config on the TypoScript top level

By convention the main rendering of a page (page type 0) is configured in a top level object called page. It is of type PAGE.

The main TypoScript configuration is always done in a top level object called config. It is of type CONFIG.

Table of Contents

The 'page' top-level-object

The page object should be of type PAGE with property typeNum (also called page type) set to 0, which is the default.

Some site package authors decide to give the main PAGE object a different top level name like mypage, however this can be confusing to subsequent integrators and not compatible with extensions that also make settings to the page top level object.

TYPO3 does not initialize page by default. You must initialize this explicitly, for example:

EXT:site_package/Configuration/TypoScript/setup.typoscript
page = PAGE
Copied!

The 'config' top-level-object

Internally TYPO3 always creates an array config with various configuration values which are evaluated during the rendering process and treated in some special, predefined and predictive way. This is what we mean when we say the property config, actually the array 'config' is of type CONFIG. It is a "top-level-object" because it is not subordinate to any other configuration setting.