TypoScript reference 

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

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.

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

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 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() 

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 

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

[enableTechnicalContext()]
lib.applicationContextTitle = TEXT
lib.applicationContextTitle.value = My Custom Title
[GLOBAL]
Copied!