---
title: "Deprecation: #62988 - Deprecate unused/non-unified DocumentTemplate code"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-62988"
source: "Changelog/7.0/Deprecation-62988-DocumentTemplateFunctions.rst"
typo3-version: "7.0"
typo3-major: 7
type: "deprecation"
issue: 62988
forge: "https://forge.typo3.org/issues/62988"
tags: ["PHP-API", "Backend"]
rendered: "2026-09-17T12:41:04+00:00"
---

# Deprecation: #62988 - Deprecate unused/non-unified DocumentTemplate code {#deprecation-62988-deprecate-unused-non-unified-documenttemplate-code}

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

## Description {#description}

Several functions within DocumentTemplate are not encouraged to be used anymore.

The hard-coded background image setting via `$TBE_STYLES['background']` is removed and its usage is deprecated.

Additionally, the font-wrapping methods *rfw()* and *dfw()* are deprecated.
The according CSS was removed from the core.

The method *collapseableSection()*, which was used solely by the reports module for ages in a buggy
way, is also deprecated in favor of Bootstrap collapseables and localstorage.

## Impact {#impact}

The core does not use this functionality anymore.

## Affected installations {#affected-installations}

All installations which use the setting `$GLOBALS['TBE_STYLES']['background']` or any of the functions:

-   dfw()
-   rfw()
-   collapseableSection()

## Migration {#migration}

-   Use CSS directly instead of `$GLOBALS['TBE_STYLES']['background']`
-   Use the CSS class *text-muted* instead of the method `dfw()`
-   Use the CSS class *text-danger* instead of the method `rfw()`
-   Use HTML bootstrap classes, localStorage etc. instead of `collapseableSection()`
