---
title: "page and config on the TypoScript top level"
manual: "TypoScript Explained"
version: "main"
permalink: "https://docs.typo3.org/permalink/t3tsref:page-config@main"
source: "TopLevelObjects/PageAndConfig.rst"
rendered: "2026-09-27T06:53:55+00:00"
---

# `page` and `config` on the TypoScript top level {#page-config}

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](https://docs.typo3.org/permalink/t3tsref:object-type-page@main).

The main TypoScript configuration is always done in a top level object called
`config`. It is of type
[CONFIG](https://docs.typo3.org/permalink/t3tsref:top-level-objects-config@main).

**Table of Contents**

-   [The 'page' top-level-object](https://docs.typo3.org/permalink/t3tsref:the-page-top-level-object@main)
-   [The 'config' top-level-object](https://docs.typo3.org/permalink/t3tsref:the-config-top-level-object@main)

## The 'page' top-level-object {#top-level-objects-page}

The `page` object should be of type [PAGE](https://docs.typo3.org/permalink/t3tsref:object-type-page@main)
with property [typeNum](https://docs.typo3.org/permalink/t3tsref:confval-page-typenum@main) (also called page type)
set to `0`, which is the default.

Some site package authors decide to give the main [PAGE](https://docs.typo3.org/permalink/t3tsref:object-type-page@main)
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/Sets/Main/setup.typoscript**

```typoscript
page = PAGE
```

## The 'config' top-level-object {#top-level-objects-config-about}

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.
