Skip to content

Commit

Permalink
[TASK] Revise "Setting page TSconfig" chapter (#384)
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

Co-authored-by: Chris Müller <2566282+brotkrueml@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and brotkrueml committed Oct 10, 2023
1 parent da8d507 commit abac9ea
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 @@ -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`:
Expand Down

0 comments on commit abac9ea

Please sign in to comment.