Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v10 here: TYPO3 ELTS.
constants
This object can be used to define constants for replacement inside a
parseFunc. If parseFunc somewhere is configured with .constants = 1
,
then all occurrences of the constant in the text will be substituted
with the actual value. This is useful, if you need one and the same
value at many places in your website. With constants, you can
maintain it easily.
Note
The constants defined here are not the ones, which can be defined
in the constants section of your template and which then in the setup
section can be used as {$myconstant}
.
Properties
Property | Data Type | stdWrap | Default |
---|---|---|---|
(array of keys) | string |
(array of keys)
- Property
- (array of keys)
- Data type
- string
- Description
-
Constants in the form
constants.
.key = value The
key
is the constant name, which you write in your texts. Thevalue
is the actual output, which you want to get in your website. - Examples:
-
constants.EMAIL = email@email.com
Copied!If parseFunc is configured with
.constants = 1
, then all occurrences of the string###EMAIL###
in the text will be substituted with the actual address.