Skip to content

Commit

Permalink
[!!!][TASK] Remove deprecated EMU addPageTSConfig & addUserTSConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
linawolf committed Oct 28, 2024
1 parent 990094c commit 758ebee
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 87 deletions.
30 changes: 0 additions & 30 deletions Documentation/Configuration/Typo3ConfVars/BE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -504,36 +504,6 @@ the TYPO3 backend:
:file:`settings.php` are updated silently by the install tool during the
upgrade process to TYPO3 v13.

.. index::
TYPO3_CONF_VARS BE; defaultUserTSconfig
.. _typo3ConfVars_be_defaultUserTSconfig:

.. confval:: defaultUserTSconfig
:Path: $GLOBALS['TYPO3_CONF_VARS']['BE']['defaultUserTSconfig']
:name: globals-typo3-conf-vars-be-defaultUserTSconfig
:type: text

.. deprecated:: 13.0
This setting will be ignored with TYPO3 v14.0. Use
:ref:`Configuration/user.tsconfig <extension-configuration-user_tsconfig>`
instead.

See also
:ref:`Setting default User TSconfig <t3tsconfig:usersettingdefaultusertsconfig>`.

.. _typo3ConfVars_be_defaultPageTSconfig:

.. confval:: defaultPageTSconfig
:Path: $GLOBALS['TYPO3_CONF_VARS']['BE']['defaultPageTSconfig']
:name: globals-typo3-conf-vars-be-defaultPageTSconfig
:type: text

.. deprecated:: 13.0
This setting will be ignored with TYPO3 v14.0.
Use :ref:`Configuration/page.tsconfig <extension-configuration-page_tsconfig>` instead.

See also :ref:`Setting the page TSconfig globally <t3tsconfig:pagesettingdefaultpagetsconfig>`.

.. _typo3ConfVars_be_defaultPermissions:

.. confval:: defaultPermissions
Expand Down
46 changes: 0 additions & 46 deletions Documentation/ExtensionArchitecture/FileStructure/ExtLocalconf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ file:`ext_localconf.php`
* Registering :ref:`hooks <hooks-concept>`, :ref:`XCLASSes <xclasses>`
or any simple array assignments to :php:`$GLOBALS['TYPO3_CONF_VARS']` options
* Registering additional Request Handlers within the :ref:`Bootstrap <bootstrapping>`
* Adding any :ref:`page TSconfig <t3tsconfig:pagesettingdefaultpagetsconfig>`
* Adding default TypoScript via :php:`\TYPO3\CMS\Core\Utility\ExtensionManagementUtility` APIs
* Registering Scheduler Tasks
* Adding reports to the reports module
Expand All @@ -95,48 +94,3 @@ The skeleton of the :file:`ext_localconf.php` looks like this:
:caption: EXT:my_extension/ext_localconf.php

Read :ref:`why the check for the TYPO3 constant is necessary <globals-constants-typo3>`.

.. index:: Extension development; PageTSconfig

Adding default page TSconfig
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionchanged:: 12.0
Page TSconfig in a file :file:`EXT:some_extension/Configuration/page.tsconfig`
is loaded globally.

Put all page TSconfig that must always be loaded into file
:file:`EXT:some_extension/Configuration/page.tsconfig`. If your extension should
also be compatible with TYPO3 v11, you can additionally load it in the
:file:`ext_localconf.php`: :ref:`Global page TSconfig, compatible
with TYPO3 11 and 12 <t3tsconfig:page-tsconfig-v11-v12>`:

Page TSconfig that can be added in the page settings should be added in the
file :file:`Configuration/TCA/Overrides/pages.php`, see
:ref:`t3tsconfig:pagesettingstaticpagetsconfigfiles`.

.. index:: Extension development; UserTSconfig

Adding default user TSconfig
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. deprecated:: 13.0
The method
:php:`\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig()`
will be removed with TYPO3 v14.0. Use
:ref:`Configuration/user.tsconfig <extension-configuration-user_tsconfig>`
instead.

Extensions with compatibility for both TYPO3 v12 and v13 should keep the old
way and switch to the :file:`Configuration/user.tsconfig` file when v12
support is dropped.

As for default page TSconfig, user TSconfig can be added inside
:file:`ext_localconf.php`, see:
:ref:`t3tsconfig:usersettingdefaultusertsconfig`:

.. literalinclude:: _ext_localconf_user_tsconfig.php
:language: php
:caption: EXT:my_extension/ext_localconf.php

See also :ref:`Setting user TSconfig <t3tsconfig:setting-user-tsconfig>`.

This file was deleted.

0 comments on commit 758ebee

Please sign in to comment.