From abac9ea527474c37e96c91bb0b454f41a98d8d72 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 10 Oct 2023 17:39:54 +0200 Subject: [PATCH] [TASK] Revise "Setting page TSconfig" chapter (#384) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add a TOC - Use "my_sitepackage" throughout the page - Fix file reference Releases: main, 12.4 Co-authored-by: Chris Müller <2566282+brotkrueml@users.noreply.github.com> --- Documentation/UsingSetting/PageTSconfig.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Documentation/UsingSetting/PageTSconfig.rst b/Documentation/UsingSetting/PageTSconfig.rst index 1d972f4d..7d0e490e 100644 --- a/Documentation/UsingSetting/PageTSconfig.rst +++ b/Documentation/UsingSetting/PageTSconfig.rst @@ -24,6 +24,8 @@ It is also possible to set :ref:`set page TSconfig directly in the page properties ` but this is not recommended anymore. +.. contents:: + :local: .. index:: pair: Page TSconfig; Default values .. _pagesettingdefaultpagetsconfig: @@ -46,8 +48,8 @@ file: .. code-block:: typoscript :caption: EXT:my_sitepackage/Configuration/page.tsconfig - @import 'EXT:myexample/Configuration/TsConfig/Page/Basic.tsconfig' - @import 'EXT:myexample/Configuration/TsConfig/Page/Mod/Wizards/NewContentElement.tsconfig' + @import 'EXT:my_sitepackage/Configuration/TsConfig/Page/Basic.tsconfig' + @import 'EXT:my_sitepackage/Configuration/TsConfig/Page/Mod/Wizards/NewContentElement.tsconfig' Many page TSconfig settings can be set globally. This is useful for @@ -61,7 +63,7 @@ can also set the page TSconfig globally. Global page TSconfig, compatible with TYPO3 v11 and v12 ------------------------------------------------------- -In TYPO3 v11 installations the content of file:`Configuration/page.tsconfig` +In TYPO3 v11 installations the content of :file:`Configuration/page.tsconfig` is not loaded automatically yet. You can achieve compatibility with both TYPO3 v11 and v12 by importing the content of this file with the API function :php:`ExtensionManagementUtility::addPageTSConfig`: