---
title: "Feature: #107875 - Improved DocHeader layout and unified language selector"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-107875-1762212144"
source: "Changelog/14.0/Feature-107875-ImprovedDocHeaderLayoutAndUnifiedLanguageSelector.rst"
typo3-version: "14.0"
typo3-major: 14
type: "feature"
issue: 107875
forge: "https://forge.typo3.org/issues/107875"
tags: ["Backend", "UX", "ext:backend"]
rendered: "2026-09-28T19:48:07+00:00"
---

# Feature: #107875 - Improved DocHeader layout and unified language selector {#feature-107875-1762212144}

See [forge#107875](https://forge.typo3.org/issues/107875)

## Description {#description}

The TYPO3 backend document header (DocHeader) has been reorganized to
provide a more consistent and intuitive user experience across all
backend modules.

This feature includes the following improvements:

### Unified language selector {#unified-language-selector}

All backend modules with multi-language support now use a consistent
language selector in the top-right area of the DocHeader. This includes:

-   **Content > Layout**
-   **Content > List**
-   **Content > Preview**
-   Record editing (FormEngine)

> [!NOTE]
> Some backend modules were renamed in TYPO3 v14.
>
> The top-level module now called **Content** was formerly named
> **Web**.
>
> The module **Content > Layout** was formerly called
> **Web > Page**.
>
> For details, see:
> [Feature: #107628 – Improved backend module naming and structure](https://docs.typo3.org/permalink/changelog:feature-107628-1729026000).

The language selector displays the currently selected language as the
button text (for example "English", "German", and the special *All
languages*) with a descriptive "Language:" prefix for screen readers.
This provides immediate visual feedback about the active language while
maintaining full accessibility.

The language selector now allows creating new page translations directly
from the dropdown (except in Preview mode). The dropdown is organized
with existing translations shown first, followed by a divider and a
"Create new translation" section header. Languages that do not yet have
a translation appear in this separate section.

Selecting a language from the "Create new translation" section will:

1.  Create the page translation via the DataHandler.
1.  Open the FormEngine to edit the newly created translation.
1.  Provide a consistent workflow across all modules.

### Unified module actions menu {#unified-module-actions-menu}

Modules with submodules or multiple "actions" now consistently display these
options as a dropdown button in the DocHeader button bar. The dropdown button
displays the currently active module or action as the button text, providing
clear visual context to users.

For accessibility, each dropdown includes a descriptive label:

-   "Display mode" for the **Content > Layout** module view selector
    (layout vs language comparison)
-   "Module actions" for general module or submodule navigation
-   Custom labels defined by individual menu configurations

These labels are implemented using visually hidden label elements, ensuring
screen readers announce both the dropdown's purpose (for example,
"Display mode:") and the current selection (for example, "Layout").

The dropdown is automatically hidden when only a single action is available,
reducing visual clutter and showing the dropdown only when navigation choices
are actually available.

Examples include **Administration > Users** with Overview, Users,
Groups actions, as well as **Content > Status** with "Pagetree
Overview", "Localization Overview", and more.

This replaces the previous inconsistent mixture of:

-   Back buttons
-   Inline button groups
-   Module menus in different locations

### Reorganized DocHeader layout {#reorganized-docheader-layout}

The DocHeader now has a more logical structure:

**Top row (navigation bar):**

-   **Left side**: Breadcrumb navigation showing the current location
-   **Right side**: Language selector (when applicable)

**Second row (button bar):**

-   **Left side, group 0**: Module actions dropdown (when applicable)
-   **Left side, groups 1+**: Additional action buttons and context-specific
    buttons (Save, Close, and so on)
-   **Right side**: Functional buttons such as "Reload", "Bookmark", or
    "Clear cache"

## Technical details {#technical-details}

### Module actions dropdown {#module-actions-dropdown}

Controllers can use the existing
`ModuleTemplate::makeDocHeaderModuleMenu()` method to automatically
create a module actions dropdown based on the module configuration:

```php
$view = $this->moduleTemplateFactory->create($request);
$view->makeDocHeaderModuleMenu();
```

For backward compatibility, the MenuRegistry API is automatically converted
to module actions dropdowns.

### Language selector integration {#language-selector-integration}

The language selector is integrated via the
`DocHeaderComponent::setLanguageSelector()` method.

First, inject the
`\TYPO3\CMS\Backend\Template\Components\ComponentFactory` into your
controller:

```php
use TYPO3\CMS\Backend\Template\Components\ComponentFactory;

public function __construct(
    private readonly ComponentFactory $componentFactory,
) {}
```

Then build the language selector dropdown with language items:

```php
// Get available site languages for the current page
$siteLanguages = $this->site->getAvailableLanguages($pageRecord, $backendUser);
$currentLanguageId = (int)$moduleData->get('language');

// Build dropdown button
$languageDropdown = $this->componentFactory->createDropDownButton()
    ->setLabel($languageService->sL('core.core:labels.language'))
    ->setShowLabelText(true)
    ->setShowActiveLabelText(true);

// Create dropdown items for each language
foreach ($siteLanguages as $siteLanguage) {
    $languageId = $siteLanguage->getLanguageId();
    $isActive = $currentLanguageId === $languageId;

    // Build URL for language selection
    $href = $this->uriBuilder->buildUriFromRoute('web_layout', [
        'id' => $pageId,
        'language' => $languageId,
    ]);

    $item = $this->componentFactory->createDropDownRadio()
        ->setHref($href)
        ->setLabel($siteLanguage->getTitle())
        ->setIcon(
            $this->iconFactory->getIcon($siteLanguage->getFlagIdentifier())
        )
        ->setActive($isActive);

    $languageDropdown->addItem($item);
}

$view->getDocHeaderComponent()->setLanguageSelector($languageDropdown);
```

The language selector component is automatically rendered in the top-right area
of the DocHeader navigation bar.

> [!NOTE]
> For advanced implementations that include "Create new translation"
> functionality, refer to the `PageLayoutController` in EXT:backend.
> The controller demonstrates how to separate existing translations from
> languages that can be created, using `DropDownDivider` and
> `DropDownHeader` components to organize the dropdown menu.

#### Accessibility implementation {#accessibility-implementation}

The `setShowActiveLabelText(true)` method enables display of the active
item's label while maintaining accessibility. When enabled with
`setShowLabelText(true)`, the button renders the dropdown's label in a
visually hidden span followed by the active item's label:

-   Visual users see: "English" (active language)
-   Screen reader users hear: "Language: English"
    (descriptive label + active language)

When `setShowLabelText(false)`, the accessibility information is provided
through aria-label and title attributes instead.

This pattern applies to all dropdown buttons in the DocHeader:

```php
$dropdown->setLabel('Display mode')  // Descriptive label for context
    ->setShowLabelText(true)         // Show label text
    ->setShowActiveLabelText(true);  // Show active item label
```

## Impact {#impact}

The changes provide a more consistent and intuitive user experience. Users can
now create and switch between page translations directly from the DocHeader
across all relevant modules, without needing to navigate to specific page areas.
The clear separation between existing translations and languages that can be
created improves discoverability and reduces confusion about which actions are
available.

The language selector and module actions dropdowns now display the currently
active selection as the button text, providing immediate visual feedback. Users
can see at a glance which language is selected or which module action is active,
without needing to open the dropdown.

Accessibility has been significantly improved through the use of descriptive
labels rendered as visually hidden elements or aria-label attributes. Screen
reader users now receive proper context about each dropdown's purpose
(e.g., "Language:", "Display mode:", "Module actions") combined with the
current selection, ensuring equal access to navigation functionality.

The module actions dropdown makes it immediately clear which module or action is
currently active, and which alternatives are available. The dropdown is only
shown when multiple options exist, reducing visual clutter. Removal of redundant
back buttons in favor of consistent breadcrumb navigation further reduces visual
noise.
