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.