Navigation Menu

Skip to content

Commit

Permalink
[DOCS] Add TCA path information (#520)
Browse files Browse the repository at this point in the history
* [DOCS] Add TCA path information

Add information about where exactly the configuration is located in the TCA array

releases: main, 11.5

* Update FieldControl.rst

* Update FieldControl.rst

Co-authored-by: lina.wolf <lwolf@w-commerce.de>
  • Loading branch information
linawolf and linawolf committed Jan 23, 2022
1 parent f3ec502 commit 8385a2e
Show file tree
Hide file tree
Showing 194 changed files with 263 additions and 48 deletions.
1 change: 1 addition & 0 deletions Documentation/Columns/Properties/Config.rst
Expand Up @@ -7,6 +7,7 @@ config

.. confval:: config

:Path: $GLOBALS['TCA'][$table]['columns'][$field]
:Required: true
:type: array
:Scope: Proc. / Display
Expand Down
1 change: 1 addition & 0 deletions Documentation/Columns/Properties/Description.rst
Expand Up @@ -7,6 +7,7 @@ Description

.. confval:: description

:Path: $GLOBALS['TCA'][$table]['columns'][$field]
:Required: false
:type: string or LLL reference
:Scope: Display
Expand Down
1 change: 1 addition & 0 deletions Documentation/Columns/Properties/DisplayCond.rst
Expand Up @@ -15,6 +15,7 @@ FlexForm values.

.. confval:: displayCond

:Path: $GLOBALS['TCA'][$table]['columns'][$field]
:Required: false
:type: string / array
:Scope: Display
Expand Down
1 change: 1 addition & 0 deletions Documentation/Columns/Properties/Exclude.rst
Expand Up @@ -7,6 +7,7 @@ exclude

.. confval:: exclude

:Path: $GLOBALS['TCA'][$table]['columns'][$field]
:Required: false
:type: boolean
:Scope: Proc. / Display
Expand Down
1 change: 1 addition & 0 deletions Documentation/Columns/Properties/L10nDisplay.rst
Expand Up @@ -7,6 +7,7 @@ Localization display (l10n\_display)

.. confval:: l10n_display

:Path: $GLOBALS['TCA'][$table]['columns'][$field]
:Required: false
:type: string (list of keywords)
:Scope: Display
Expand Down
3 changes: 2 additions & 1 deletion Documentation/Columns/Properties/L10nMode.rst
Expand Up @@ -7,6 +7,7 @@ Localization mode (l10n_mode)

.. confval:: l10n_mode

:Path: $GLOBALS['TCA'][$table]['columns'][$field]
:Required: false
:type: string (keyword)
:Scope: Display / Proc.
Expand Down Expand Up @@ -67,5 +68,5 @@ be copied without a prepended string.

.. code-block::
:caption: EXT:my_sitepackage/Configuration/TCA/Overrides/tt_content.php
$GLOBALS['TCA']['tt_content']['columns']['header']['l10n_mode'] = ''
1 change: 1 addition & 0 deletions Documentation/Columns/Properties/Label.rst
Expand Up @@ -7,6 +7,7 @@ label

.. confval:: label

:Path: $GLOBALS['TCA'][$table]['columns'][$field]
:Required: true
:type: string or LLL reference
:Scope: Display
Expand Down
1 change: 1 addition & 0 deletions Documentation/Columns/Properties/OnChange.rst
Expand Up @@ -7,6 +7,7 @@ onChange

.. confval:: onChange

:Path: $GLOBALS['TCA'][$table]['columns'][$field]
:Required: false
:type: string
:Scope: Display
Expand Down
Expand Up @@ -8,6 +8,7 @@ autoSizeMax

.. confval:: autoSizeMax

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']
:type: integer
:Scope: Display
:Types: :ref:`select <columns-select>`, :ref:`group <columns-group>`, :ref:`inline <columns-inline>`
Expand Down
Expand Up @@ -8,6 +8,7 @@ allowLanguageSynchronization behaviour

.. confval:: behaviour > allowLanguageSynchronization

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']
:type: boolean
:Scope: Proc.
:Types: :ref:`check <columns-check>`, :ref:`flex <columns-flex>`,
Expand All @@ -17,9 +18,9 @@ allowLanguageSynchronization behaviour
:ref:`radio <columns-radio>`

Allows an editor to select in a localized record whether the value is copied
over from default or source language record, or if the field has an own value
in the localization. If set to true and if the table supports localization
and if a localized record is edited, this setting enables FieldWizard
over from default or source language record, or if the field has an own value
in the localization. If set to true and if the table supports localization
and if a localized record is edited, this setting enables FieldWizard
:ref:`LocalizationStateSelector <columns-input-properties-fieldWizard-localizationStateSelector>`:
Two or three radio buttons shown below the field input. The state of this is
stored in a json encoded array in the database table called :code:`l10n_state`.
Expand Down
1 change: 1 addition & 0 deletions Documentation/ColumnsConfig/CommonProperties/Default.rst
Expand Up @@ -7,6 +7,7 @@ default

.. confval:: default

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']
:type: integer / string
:Scope: Display / Proc.
:Types: :ref:`group <columns-group>`, :ref:`input <columns-input>`,
Expand Down
Expand Up @@ -7,6 +7,7 @@ dontRemapTablesOnCopy

.. confval:: dontRemapTablesOnCopy

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']
:type: string (list of tables)
:Scope: Proc.
:Types: :aspect:`Description`
Expand Down
Expand Up @@ -7,6 +7,7 @@ fieldControl

.. confval:: fieldControl

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']
:type: array
:Scope: Display
:Types: :ref:`group <columns-group>`,
Expand Down
Expand Up @@ -7,6 +7,7 @@ addRecord

.. confval:: addRecord

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']
:type: array
:Scope: fieldControl
:Types: :ref:`group <columns-group>`
Expand Down Expand Up @@ -56,6 +57,7 @@ Options

.. confval:: disabled

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['addRecord']
:type: boolean
:Scope: fieldControl -> addRecord
:Default: true
Expand All @@ -65,6 +67,7 @@ Options

.. confval:: options[pid]

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['addRecord']
:type: string
:Scope: fieldControl -> addRecord
:Values: marker or an integer
Expand All @@ -83,6 +86,7 @@ Options

.. confval:: options[table]

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['addRecord']
:type: string
:Scope: fieldControl -> addRecord
:Values: name of the table
Expand All @@ -95,6 +99,7 @@ Options

.. confval:: options[title]

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['addRecord']
:type: string
:Scope: fieldControl -> addRecord
:Values: string or LLL reference
Expand All @@ -104,6 +109,7 @@ Options

.. confval:: options[setValue]

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['addRecord']
:type: string
:Scope: fieldControl -> addRecord
:Values: string
Expand Down
Expand Up @@ -7,6 +7,7 @@ editPopup

.. confval:: editPopup

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']
:type: array
:Scope: fieldControl
:Types: :ref:`group <columns-group>`
Expand All @@ -23,6 +24,7 @@ Options

.. confval:: disabled

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['editPopup']
:type: boolean
:Scope: fieldControl -> editPopup
:Default: true
Expand All @@ -32,6 +34,7 @@ Options

.. confval:: options[title]

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['editPopup']
:type: string
:Scope: fieldControl -> editPopup
:Values: string or LLL reference
Expand All @@ -41,6 +44,7 @@ Options

.. confval:: options[windowOpenParameters]

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['editPopup']
:type: string
:Scope: fieldControl -> editPopup
:Values: string or LLL reference
Expand Down
Expand Up @@ -7,6 +7,7 @@ listModule

.. confval:: listModule

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']
:type: array
:Scope: fieldControl
:Types: :ref:`group <columns-group>`
Expand All @@ -23,6 +24,7 @@ Options

.. confval:: disabled

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['listModule']
:type: boolean
:Scope: fieldControl -> listModule
:Default: true
Expand All @@ -32,6 +34,7 @@ Options

.. confval:: options[pid]

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['listModule']
:type: string
:Scope: fieldControl -> addRecord
:Values: marker or an integer
Expand All @@ -50,6 +53,7 @@ Options

.. confval:: options[table]

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['listModule']
:type: string
:Scope: fieldControl -> listModule
:Values: name of the table
Expand All @@ -62,6 +66,7 @@ Options

.. confval:: options[title]

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['listModule']
:type: string
:Scope: fieldControl -> listModule
:Values: string or LLL reference
Expand Down
Expand Up @@ -7,6 +7,7 @@ resetSelection

.. confval:: resetSelection

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']
:type: array
:Scope: fieldControl
:Types: :aspect:`Description`
Expand Down
Expand Up @@ -7,6 +7,7 @@ fieldInformation

.. confval:: fieldInformation

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']
:type: array
:Scope: Display
:Types: :ref:`check <columns-check>`, :ref:`flex <columns-flex>`,
Expand Down
Expand Up @@ -7,6 +7,7 @@ fieldWizard

.. confval:: fieldWizard

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']
:type: array
:Scope: Display
:Types: :ref:`check <columns-check>`, :ref:`flex <columns-flex>`,
Expand Down
Expand Up @@ -7,6 +7,7 @@ defaultLanguageDifferences

.. confval:: defaultLanguageDifferences

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldWizard']
:type: array
:Scope: fieldWizard
:Types: :ref:`check <columns-check>`, :ref:`flex <columns-flex>`,
Expand Down
Expand Up @@ -7,6 +7,7 @@ localizationStateSelector

.. confval:: localizationStateSelector

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldWizard']
:type: array
:Scope: fieldWizard

Expand Down
Expand Up @@ -7,6 +7,7 @@ otherLanguageContent

.. confval:: otherLanguageContent

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldWizard']
:type: array
:Scope: fieldWizard
:Types: :ref:`check <columns-check>`, :ref:`flex <columns-flex>`,
Expand Down
Expand Up @@ -7,6 +7,7 @@ recordsOverview

.. confval:: recordsOverview

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldWizard']
:type: array
:Scope: fieldWizard
:Types: :ref:`group <columns-group>`
Expand Down
Expand Up @@ -7,6 +7,7 @@ selectIcons

.. confval:: selectIcons

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldWizard']
:type: array
:Scope: fieldWizard

Expand Down
Expand Up @@ -7,6 +7,7 @@ tableList

.. confval:: tableList

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldWizard']
:type: array
:Scope: fieldWizard
:Types: :ref:`group <columns-group>`
Expand Down
Expand Up @@ -7,6 +7,7 @@ itemsProcFunc

.. confval:: itemsProcFunc

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']
:type: string (class->method reference)
:Scope: Display / Proc.
:Types: :ref:`check <columns-check>`, :ref:`select <columns-select>`, :ref:`radio <columns-radio>`
Expand Down
Expand Up @@ -7,6 +7,7 @@ localizeReferencesAtParentLocalization

.. confval:: localizeReferencesAtParentLocalization

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']
:type: boolean
:Scope: Proc.
:Types: :ref:`group <columns-group>`, :ref:`select <columns-select>`
Expand Down
1 change: 1 addition & 0 deletions Documentation/ColumnsConfig/CommonProperties/Maxitems.rst
Expand Up @@ -7,6 +7,7 @@ maxitems

.. confval:: maxitems

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']
:type: integer > 0
:Scope: Display / Proc.
:Types: :ref:`group <columns-group>`, :ref:`inline <columns-inline>`
Expand Down
1 change: 1 addition & 0 deletions Documentation/ColumnsConfig/CommonProperties/Minitems.rst
Expand Up @@ -7,6 +7,7 @@ minitems

.. confval:: minitems

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']
:type: integer > 0
:Scope: Display
:Types: :ref:`group <columns-group>`, :ref:`inline <columns-inline>`
Expand Down
1 change: 1 addition & 0 deletions Documentation/ColumnsConfig/CommonProperties/Mm.rst
Expand Up @@ -7,6 +7,7 @@ MM

.. confval:: MM

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']
:type: string (table name)
:Scope: Proc.
:Types: :ref:`group <columns-group>`, :ref:`select <columns-select>`, :ref:`inline <columns-inline>`
Expand Down
1 change: 1 addition & 0 deletions Documentation/ColumnsConfig/CommonProperties/Mode.rst
Expand Up @@ -7,6 +7,7 @@ mode

.. confval:: mode

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']
:type: string (keywords)
:Scope: Display
:Types: :ref:`input <columns-input>`
Expand Down
1 change: 1 addition & 0 deletions Documentation/ColumnsConfig/CommonProperties/Multiple.rst
Expand Up @@ -7,6 +7,7 @@ multiple

.. confval:: multiple

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']
:type: boolean
:Scope: Display / Proc.
:Types: :ref:`group <columns-group>`, :ref:`selec <columns-select>`
Expand Down
Expand Up @@ -7,6 +7,7 @@ placeholder

.. confval:: placeholder

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']
:type: string
:Scope: Display
:Types: :ref:`input <columns-input>`
Expand Down
1 change: 1 addition & 0 deletions Documentation/ColumnsConfig/CommonProperties/ReadOnly.rst
Expand Up @@ -7,6 +7,7 @@ readOnly

.. confval:: readOnly

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']
:type: boolean
:Scope: Display
:Types: :ref:`check <columns-check>`, :ref:`flex <columns-flex>`,
Expand Down
1 change: 1 addition & 0 deletions Documentation/ColumnsConfig/CommonProperties/Search.rst
Expand Up @@ -7,6 +7,7 @@ search

.. confval:: search

:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']
:type: array
:Scope: Search
:Types: :ref:`input <columns-input>`
Expand Down

0 comments on commit 8385a2e

Please sign in to comment.