Skip to content

Commit

Permalink
[TASK] Correct indentation and add title to example in TcaDefaults
Browse files Browse the repository at this point in the history
releases: main, 12.4, 11.5
  • Loading branch information
linawolf committed Apr 14, 2024
1 parent ac9749f commit a59b09d
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions Documentation/PageTsconfig/TcaDefaults.rst
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 <userTsTcaDefaults>`, 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 <userTsTcaDefaults>`
#. Value from page TSconfig (these settings)
#. Value from "defVals" GET variables
#. Value from previous record based on
:ref:`useColumnsForDefaultValues <t3tca:ctrl-reference-usecolumnsfordefaultvalues>`

#. Value from :ref:`User TSconfig <userTsTcaDefaults>`

#. Value from page TSconfig (these settings)

#. Value from "defVals" GET variables
.. note::
`TCAdefaults` is not applied to :ref:`FlexForm <t3coreapi:flexforms>` values.
These can only be addressed via :xml:`<default>` 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 <t3coreapi:flexforms>` values. These can only be addressed via
:xml:`<default>` elements within the FlexForm data structure.

0 comments on commit a59b09d

Please sign in to comment.