---
title: "TypoScript reference"
manual: "Environment Indicator"
version: "main"
permalink: "https://docs.typo3.org/permalink/konradmichalik/typo3-environment-indicator:typoscript-reference@main"
source: "DeveloperCorner/TypoScript.rst"
rendered: "2026-11-27T12:31:32+00:00"
---

# TypoScript reference {#typoscript-reference}

The extension provides TypoScript objects and two condition functions that can be used in custom TypoScript configurations.

**Table of Contents**

-   [Condition: enableTechnicalContext()](https://docs.typo3.org/permalink/konradmichalik/typo3-environment-indicator:condition-enabletechnicalcontext@main)
-   [TypoScript objects](https://docs.typo3.org/permalink/konradmichalik/typo3-environment-indicator:typoscript-objects@main)
-   [Condition: enableEnvironmentConsole()](https://docs.typo3.org/permalink/konradmichalik/typo3-environment-indicator:condition-enableenvironmentconsole@main)
-   [Overriding objects](https://docs.typo3.org/permalink/konradmichalik/typo3-environment-indicator:overriding-objects@main)

## Condition: enableTechnicalContext() {#condition-enabletechnicalcontext}

The `enableTechnicalContext()` condition function evaluates whether the frontend hint indicator is active for the current environment. It returns `true` when the frontend context feature is enabled in the extension configuration **and** a `FrontendHint` indicator is configured for the current application context. The function is provided by `TechnicalContextConditionFunctionsProvider`.

```typoscript
[enableTechnicalContext()]
page.10 = TEXT
page.10.value = Environment indicator is active
[GLOBAL]
```

## TypoScript objects {#typoscript-objects}

The following `lib.*` objects are registered within the `[enableTechnicalContext()]` condition block via the included Site Set. They can be used or overridden in your own TypoScript.

| Object | Description |
| --- | --- |
| `lib.applicationContextTitle` | Returns the current TYPO3 application context (e.g. `Development/DDEV`). |
| `lib.applicationContextColor` | Returns the configured color of the [Frontend Hint](https://docs.typo3.org/permalink/konradmichalik/typo3-environment-indicator:frontend-hint@main) indicator. |
| `lib.applicationContextTextColor` | Returns the optimal text color (black or white) for the configured hint color. |
| `lib.websiteTitle` | Returns the `text` option of the Frontend Hint if set. Otherwise it returns the website title from the site configuration, then the site identifier. |
| `lib.applicationContextDescription` | Returns the `description` option of the Frontend Hint. |
| `lib.applicationContextPositionClass` | Returns the CSS class for the position of the hint (e.g. `technical-context--top-left`). |
| `lib.technicalContext` | A `FLUIDTEMPLATE` that renders the complete frontend hint element. This object is automatically added to `page` output. |

## Condition: enableEnvironmentConsole() {#condition-enableenvironmentconsole}

The `enableEnvironmentConsole()` condition function returns `true` when the `frontend.console`
feature is enabled in the extension configuration **and** a `GeneralConsole` indicator is configured for the
current application context. Within this condition the following objects are registered:

| Object | Description |
| --- | --- |
| `lib.environmentConsoleBadgeText` | Returns the text of the console badge. |
| `lib.environmentConsoleBadgeStyle` | Returns the CSS style of the console badge. |
| `lib.environmentConsole` | A `FLUIDTEMPLATE` that renders the console script. This object is automatically added to `page` output. |

## Overriding objects {#overriding-objects}

You can override any of these objects in your own TypoScript setup:

```typoscript
[enableTechnicalContext()]
lib.applicationContextTitle = TEXT
lib.applicationContextTitle.value = My Custom Title
[GLOBAL]
```
