TYPO3 v9 has reached its end-of-life September 30th, 2021 and is not maintained by the community anymore. Looking for a stable version? Use the version switch on the top left.
You can order Extended Long Term Support (ELTS) here: TYPO3 ELTS.
TypoScript Coding Guidelines¶
Directory and File Names¶
As of TYPO3 8.7, the file ending can and should be
TypoScript files are located in the directory
File name for constants in static templates:
File name for TypoScript in static templates:
More information about the file ending:
TypoScript files used to have the ending
Since TYPO3 7, it is also possible to use the ending
.ts. This is not recommended because it is also used by TypeScript.
Therefore, you should use
.typoscriptif you are using TYPO3 8.7 and later.
Changelog: Feature: #78161 - Introduce .typoscript file extension
Use spaces, not TABs.
Use 2 spaces per indenting level.
See Setup IDE / Editor in this manual for information about setting up your Editor / IDE to adhere to the coding guidelines.