In Typo3, what is the difference between setup, constants and TSConfig

There seem to be three different places where I can write TypoScript: the templates have a constant field and a settings field, and each page has a TSConfig field. However, it seems that every TypoScript command should be in a specific field. In most cases, I should try before finding whether this configuration will be included in the template settings or in the TSConfig root page.

Why are there three different places to record TypoScript? What is the use of each of them?

+7
source share
1 answer
  • TSconfig is primarily intended for backend configuration. You can add / change / delete values ​​from forms, change behavior, which users can add default entries for groups, etc. see here for more details.
  • Typoscript in the template is used to change the behavior of the interface, parse the templates, configure the extension, navigation, etc. A typical template in the template has the so-called cObjects, which provide useful functions such as image manipulation (IMAGE), retrieving records from a database (RECORDS), creating a menu (HMENU), see reference .
  • Typoscript constants are very similar to variables that you can use in your Typoscript template. for example, you have an email address that occurs in many different places in the Typoscript template, you can define it as a constant. See more details.
+13
source

All Articles