Extension Page Title 

Extension key

extpagetitle

Package name

brotkrueml/extpagetitle

Version

main

Language

en

Author

Chris Müller

License

This document is published under the Creative Commons BY 4.0 license.

Rendered

Tue, 03 Mar 2026 18:08:19 +0000


This is a TYPO3 extension that simplifies setting a page title for an extension's plugin view a little.


Table of Contents:

Introduction 

Sometimes it is necessary, for example, for SEO reasons, to change the browser page title:

  • In a show action you want to display the name of the record displayed.
  • In a list action the page number should be shown in the page title.
  • etc.

This extension makes use of the Page Title API and simplifies the setting of the page title.

Requirements 

The extension in version main supports TYPO3 v11 LTS, TYPO3 v12 LTS and TYPO3 v13. Use an older version for compatibility with TYPO3 v9 LTS or TYPO3 v10 LTS.

Why should you use this extension? 

It makes your developer's life a little easier. Of course, you can add a page title provider and the TypoScript configuration to your own extension. But imagine, you have some more extensions you would like to change the page title? You have to add the class again and again. With this extension you have only one piece of code and don't repeat yourself.

But please note: If you have two plugins on your page you will mostly need to write an own implementation to determine which plugin has precedence over the other.

Installation 

Installation via Composer 

The recommended way to install this extension is by using Composer. In your Composer-based TYPO3 project root, just type:

composer require brotkrueml/extpagetitle
Copied!

Installation in extension manager 

You can also install the extension from the TYPO3 Extension Repository (TER).

Usage 

Site sets (TYPO3 v13) 

This extension provides support for site sets introduced with TYPO3 v13.1.

Add brotkrueml/extpagetitle as dependency to the configuration of your site package:

EXT:your_sitepackage/Configuration/Sets/<your-set>/config.yaml
name: your-vendor/your-sitepackage
label: Sitepackage

dependencies:
  - brotkrueml/extpagetitle
  # ... and some other dependencies
Copied!

Include static template (before TYPO3 v13, and v13 without site sets) 

First you have to include the static template "Extension Page Title" in your template record. This registers the page title provider. As default, this page title provider is called before the record page title provider. You can change this via TypoScript, just look into the Configuration/TypoScript/setup.typoscript file.

Set the page title in your extension 

In your extension, for example, in the show action of an Extbase controller, inject the class \Brotkrueml\Extpagetitle\PageTitle\ExtensionPageTitleProvider into your controller:

<?php

declare(strict_types=1);

use Brotkrueml\Extpagetitle\PageTitle\ExtensionPageTitleProvider;
use Psr\Http\Message\ResponseInterface;

final class FooController extends ActionController
{
   public function __construct(
      private readonly ExtensionPageTitleProvider $pageTitleProvider,
   ) {}

   public function showAction(Foo $foo): ResponseInterface
   {
      $this->pageTitleProvider->setTitle($foo->getTitle());

      // ... more logic
   }
}
Copied!