TypoScript reference
The extension provides TypoScript objects and two condition functions that can be used in custom TypoScript configurations.
Table of Contents
Condition: enableTechnicalContext()
The enable 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 Frontend indicator is configured for the current application context. The function is provided by Technical.
[enableTechnicalContext()]
page.10 = TEXT
page.10.value = Environment indicator is active
[GLOBAL]
TypoScript objects
The following lib.* objects are registered within the [enable condition block via the included Site Set. They can be used or overridden in your own TypoScript.
| Object | Description |
|---|---|
lib. | Returns the current TYPO3 application context (e.g. Development/). |
lib. | Returns the configured color of the Frontend Hint indicator. |
lib. | Returns the optimal text color (black or white) for the configured hint color. |
lib. | 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. | Returns the description option of the Frontend Hint. |
lib. | Returns the CSS class for the position of the hint (e.g. technical-). |
lib. | A FLUIDTEMPLATE that renders the complete frontend hint element. This object is automatically added to page output. |
Condition: enableEnvironmentConsole()
The enable condition function returns true when the frontend.
feature is enabled in the extension configuration and a General indicator is configured for the
current application context. Within this condition the following objects are registered:
| Object | Description |
|---|---|
lib. | Returns the text of the console badge. |
lib. | Returns the CSS style of the console badge. |
lib. | 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]