Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

[TASK] Correct indentation and add title to example in TcaDefaults #468

Merged
merged 2 commits into from
Apr 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading