---
title: "Installation"
manual: "Pagewide CSS classes"
version: "13.2"
permalink: "https://docs.typo3.org/permalink/svent/pageclasses:installation@13.2"
source: "Installation/Index.rst"
rendered: "2026-11-07T11:44:46+00:00"
---

# Installation {#installation}

This version supports TYPO3 12.4, 13.4 and 14.3 LTS with PHP 8.1 to 8.5 (as
supported by the respective TYPO3 version). For TYPO3 11.5 LTS use version
12.x of the extension.

## Composer {#installation-composer}

```bash
composer require svent/pageclasses
```

Then update the database schema, e.g. in **Admin Tools > Maintenance >
Analyze Database Structure** (TYPO3 12 and 13) or **System >
Maintenance > Analyze Database Structure** (TYPO3 14).

## Without Composer {#installation-ter}

Install the extension `pageclasses` from the TYPO3 Extension Repository (TER)
in **Admin Tools > Extensions** (TYPO3 12 and 13) or
**System > Extensions** (TYPO3 14). The database fields are created
during the installation.

## Include the TypoScript {#installation-typoscript}

Add the static template **Pagewide CSS Classes (pageclasses)** to the
main TypoScript template of your site: **Web > Template** (TYPO3 12),
**Site Management > TypoScript** (TYPO3 13) or
**Sites > TypoScript** (TYPO3 14), edit the whole
TypoScript record and add it in the field
**Include static (from extensions)**.

That's all: the TypoScript of the extension sets `page.bodyTagCObject` (see
[setBodyTagCObject](https://docs.typo3.org/permalink/svent/pageclasses:confval-constants-setbodytagcobject@13.2)), so the classes are
rendered without further configuration.
