---
title: "Feature: #108008 - Automatic reload and shortcut buttons in backend modules"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-108008-1762896168"
source: "Changelog/14.0/Feature-108008-AutomaticReloadAndShortcutButtonsInBackendModules.rst"
typo3-version: "14.0"
typo3-major: 14
type: "feature"
issue: 108008
forge: "https://forge.typo3.org/issues/108008"
tags: ["Backend", "PHP-API", "ext:backend"]
rendered: "2026-09-20T18:31:11+00:00"
---

# Feature: #108008 - Automatic reload and shortcut buttons in backend modules {#feature-108008-1762896168}

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

## Description {#description}

Backend modules now automatically get reload and shortcut buttons added to
their document header, ensuring consistent display across all backend modules.

Previously, controllers manually added these buttons with varying group
numbers, leading to inconsistent positioning. Now, buttons always appear on
the right side, ensuring they are always the last two buttons regardless of
what other buttons are added.

Controllers provide shortcut information using the new
`DocHeaderComponent::setShortcutContext()` method:

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

$view->getDocHeaderComponent()->setShortcutContext(
    routeIdentifier: 'site_configuration.edit',
    displayName: sprintf('Edit site: %s', $siteIdentifier),
    arguments: ['site' => $siteIdentifier]
);
```

Buttons are automatically added during rendering before the PSR-14
`ModifyButtonBarEvent` is dispatched, allowing event listeners to modify
or remove them if needed.

Controllers can disable automatic buttons if custom behavior is required:

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

$view->getDocHeaderComponent()->disableAutomaticReloadButton();
$view->getDocHeaderComponent()->disableAutomaticShortcutButton();
```

## Impact {#impact}

Reload and shortcut buttons now appear consistently at the same position
across all backend modules, providing a predictable user experience.

Controllers no longer need to manually create these buttons, reducing
boilerplate code. Use `DocHeaderComponent::setShortcutContext()` to
provide shortcut information and remove manual button creation, see
[Deprecation: #108008 - Manual shortcut button creation](https://docs.typo3.org/permalink/changelog:deprecation-108008-1762896168).

**Before**:

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

$reloadButton = $this->componentFactory->createReloadButton($uri);
$view->addButtonToButtonBar(
    $reloadButton,
    ButtonBar::BUTTON_POSITION_RIGHT,
    3
);

$shortcutButton = $this->componentFactory->createShortcutButton()
    ->setRouteIdentifier('my_module')
    ->setDisplayName('My Module')
    ->setArguments(['id' => $pageId]);
$view->addButtonToButtonBar($shortcutButton);
```

**After**:

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

// Set shortcut context only
$view->getDocHeaderComponent()->setShortcutContext(
    routeIdentifier: 'my_module',
    displayName: 'My Module',
    arguments: ['id' => $pageId]
);
```
