From a59b09d26a6f0b2132add61ae0fe69c6f3263ca1 Mon Sep 17 00:00:00 2001 From: "lina.wolf" Date: Sun, 14 Apr 2024 15:52:32 +0200 Subject: [PATCH] [TASK] Correct indentation and add title to example in TcaDefaults releases: main, 12.4, 11.5 --- 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..bae7253c 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.