Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
[TASK] Revise "Setting page TSconfig" chapter
Browse files Browse the repository at this point in the history
- Add a TOC
- Use "my_sitepackage" throughout the page
- Fix file reference

Releases: main, 12.4
  • Loading branch information
brotkrueml committed Oct 8, 2023
1 parent 4053f00 commit 3d9aeae
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Documentation/UsingSetting/PageTSconfig.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ It is also possible to set
:ref:`set page TSconfig directly in the page properties <pagetsconfig-enter-data>` but
this is not recommended anymore.

.. contents::
:local:

.. index:: pair: Page TSconfig; Default values
.. _pagesettingdefaultpagetsconfig:
Expand All @@ -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
Expand All @@ -64,7 +66,7 @@ add global static page TSconfig before anything else is loaded.
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`:
Expand Down

0 comments on commit 3d9aeae

Please sign in to comment.