Skip to content

Commit

Permalink
Update ExtTyposcriptConstantsTyposcript.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
linawolf authored Nov 15, 2024
1 parent cede4f8 commit 852b47c
Showing 1 changed file with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@
:file:`ext_typoscript_constants.typoscript`
===========================================

Preset TypoScript constants. Will be included in the setup section of all
TypoScript templates.
reset TypoScript constants. Will be included in the constants section of all
TypoScript **records**. Takes no effect in sites using :ref:`Site sets <t3coreapi:site-sets>`.

.. attention::
.. attention::

Use such a file if you absolutely need to load some TypoScript (because you
would get serious errors without it). Otherwise static templates or
usage of the *Extension Management API* of class
:php:`TYPO3\CMS\Core\Utility\ExtensionManagementUtility` are preferred.
.. versionchanged:: 13.1

This file takes no effect in sites that use :ref:`Site sets <t3coreapi:site-sets>`
This file works for backward compability reasons only in installations that depend
on TypoScript records only.

Provide settings in your :ref:`Site settings definitions <t3coreapi:site-settings-definition>`
in your site set. TypoScript constants that have to be loaded globally
can be loaded via :ref:`ExtensionManagementUtility::addTypoScript <t3tsref:extdev-always-load>`.

0 comments on commit 852b47c

Please sign in to comment.