O'Reilly logo

Mastering TypoScript: TYPO3 Website, Template, and Extension Development by Daniel Koch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Constant Editor

This tool can be accessed via Web | Templates | Constant Editor. It is mainly used to edit standard templates (for example, text and background color) by modifying constants. (We saw how to define constants in TypoScript in the Constants section above.) However, as we will see, the Constant Editor only makes sense if there is additional data within the constant definition.

Preparing Constants

The Constant Editor can only be used effectively if constants are appropriately commented. These comments tell the constant editor what the constants are used for. For example, the constant example introduced earlier contains the following code:

myText.Content = Hello World!

Here myText.Content is a constant, but without comments it cannot ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required