TSRef - TypoScript Reference
6. Constants
6.1. What are constants?
Constants are values defined in the "Constants"-field of a template. They follow the syntax of ordinary TypoScript!
NOTE, reserved name: The object or property "file" is always interpreted as data type "resource".
NOTE: Toplevel "object" TSConstantEditor cannot be used. It's reserved for configuration of the ConstantEditor module (Changed from beta4)
Example:
Here "bgCol" is set to "red" and "file.toplogo" is set to "logo*.gif" which is found in the resource-field of the template.
bgCol = red
topimg.width = 200
topimg.file.pic2 = fileadmin/logo2.gif
file.toplogo = logo*.gif
This could also be defined like this:
bgCol = red
file {
toplogo = logo*.gif
}
topimg {
width = 200
file.pic2 = fileadmin/logo2.gif
}
(The objects in bold is the reserved word "file" and the properties are always of data type "resource"
