---
title: "ext_typoscript_constants.typoscript"
manual: "TYPO3 Explained"
version: "main"
permalink: "https://docs.typo3.org/permalink/t3coreapi:ext-typoscript-constants-typoscript@main"
source: "ExtensionArchitecture/FileStructure/ExtTyposcriptConstantsTyposcript.rst"
rendered: "2026-09-24T12:36:55+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/main/en-us/ApiOverview/SiteHandling/SiteSets/Index.html#site-sets).

> [!WARNING]
> **Attention**
>
> This file takes no effect in sites that use [Site sets](https://docs.typo3.org/permalink/t3coreapi:site-sets@main).
> 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@main)
> 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/main/en-us/UsingSetting/AddTypoScriptWithExtensions.html#extdev-always-load).
