---
title: "ext_typoscript_constants.typoscript"
manual: "TYPO3 Explained"
version: "13.4"
permalink: "https://docs.typo3.org/permalink/t3coreapi:ext-typoscript-constants-typoscript@13.4"
source: "ExtensionArchitecture/FileStructure/ExtTyposcriptConstantsTyposcript.rst"
rendered: "2026-09-21T07:21:01+00:00"
---

# `ext_typoscript_constants.typoscript` {#ext-typoscript-constants-typoscript}

-   **ext_typoscript_constants.typoscript**

    -   *Scope:* extension
    -   *Path (Composer):* packages/my_extension/ext_typoscript_constants.typoscript
    -   *Path (Classic):* typo3conf/ext/my_extension/ext_typoscript_constants.typoscript

    Preset TypoScript constants. Will be included in the constants section of all
    TypoScript **records**. Takes no effect in sites using [Site sets](https://docs.typo3.org/m/typo3/reference-coreapi/13.4/en-us/ApiOverview/SiteHandling/SiteSets.html#site-sets).

> [!WARNING]
> **Attention**
>
> <!-- TODO: no Markdown rendering for "versionchanged" -->
>
> This file takes no effect in sites that use [Site sets](https://docs.typo3.org/permalink/t3coreapi:site-sets@13.4).
> This file works for backward compability reasons only in installations that depend
> on TypoScript records only.
>
> Provide settings in your [Site settings definitions](https://docs.typo3.org/permalink/t3coreapi:site-settings-definition@13.4)
> in your site set. TypoScript constants that have to be loaded globally
> can be loaded via [ExtensionManagementUtility::addTypoScript](https://docs.typo3.org/m/typo3/reference-typoscript/13.4/en-us/UsingSetting/AddTypoScriptWithExtensions.html#extdev-always-load).
