From e45f22c3e9abe239fac648df442a7b07ce7310c7 Mon Sep 17 00:00:00 2001 From: Lina Wolf <48202465+linawolf@users.noreply.github.com> Date: Sun, 14 Apr 2024 18:45:45 +0200 Subject: [PATCH] [TASK] Correct indentation and add title to example in TcaDefaults (#468) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [TASK] Correct indentation and add title to example in TcaDefaults releases: main, 12.4, 11.5 * Update Documentation/PageTsconfig/TcaDefaults.rst --------- Co-authored-by: Chris Müller <2566282+brotkrueml@users.noreply.github.com> --- Documentation/PageTsconfig/TcaDefaults.rst | 41 +++++++++++----------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/Documentation/PageTsconfig/TcaDefaults.rst b/Documentation/PageTsconfig/TcaDefaults.rst index 0df91951..6ac0cdc8 100644 --- a/Documentation/PageTsconfig/TcaDefaults.rst +++ b/Documentation/PageTsconfig/TcaDefaults.rst @@ -1,8 +1,8 @@ -.. include:: /Includes.rst.txt -.. index:: - TCAdefaults - Records; Default values -.. _pageTsTcaDefaults: +.. include:: /Includes.rst.txt +.. index:: + TCAdefaults + Records; Default values +.. _pageTsTcaDefaults: =========== TCAdefaults @@ -16,24 +16,25 @@ The full path of a setting include the table and the field name: `TCAdefaults.[t This key is also available on :ref:`User TSconfig level `, the order of default values when creating new records in the backend is this: -#. Value from $GLOBALS['TCA'] +#. Value from `$GLOBALS['TCA']` +#. Value from :ref:`user TSconfig ` +#. Value from page TSconfig (these settings) +#. Value from "defVals" GET variables +#. Value from previous record based on + :ref:`useColumnsForDefaultValues ` -#. Value from :ref:`User TSconfig ` - -#. Value from page TSconfig (these settings) - -#. Value from "defVals" GET variables +.. note:: + `TCAdefaults` is not applied to :ref:`FlexForm ` values. + These can only be addressed via :xml:`` elements within the + FlexForm data structure. -#. Value from previous record based on 'useColumnsForDefaultValues' +.. _pageTsTcaDefaults-example: -Example: +Example: Do not hide newly created pages by default +=================================================== -.. code-block:: typoscript - :caption: EXT:site_package/Configuration/page.tsconfig +.. code-block:: typoscript + :caption: EXT:site_package/Configuration/page.tsconfig - # Show newly created pages by default - TCAdefaults.pages.hidden = 0 + TCAdefaults.pages.hidden = 0 -.. note:: - `TCAdefaults` is not applied to :ref:`FlexForm ` values. These can only be addressed via - :xml:`` elements within the FlexForm data structure.