Skip to content

Commit 9d8af25

Browse files
[TASK] Language checks
1 parent 5618b93 commit 9d8af25

6 files changed

Lines changed: 48 additions & 45 deletions

File tree

Documentation/ColumnsConfig/Type/Category/_Properties/_ShowIfEmpty.rst.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
66
:Default: false
77

88
.. versionchanged:: 14.2
9-
Starting with TYPO3 14.2 relational fields are hidden when no selectable
10-
items are available. This option can be used to disable the behaviour.
9+
Starting with TYPO3, 14.2 relational fields are hidden when no
10+
selectable items are available. Option `showIfEmpty` will disable this behaviour.
1111

12-
By default a field of type `category` is hidden when no categories are
13-
available. Setting `showIfEmpty` to true, shows the field even if no options
12+
By default, `category` fields are hidden when no categories are
13+
available. Setting `showIfEmpty` to true displays this field type, even if no options
1414
are available.
1515

1616
.. code-block:: php
1717
:caption: EXT:my_extension/Configuration/TCA/Overrides/pages.php
1818
1919
$GLOBALS['TCA']['pages']['columns']['categories']['config']['showIfEmpty'] = true;
2020
21-
Possible reasons, why no categories are available: No category records
22-
have been created yet, all categories have been deleted, or
23-
the current user has no permissions for any of the existing categories.
21+
Possible reasons why categories may not be available: no category records
22+
have been created, all categories have been deleted, or
23+
the current user has no permissions to access any of the categories.

Documentation/ColumnsConfig/Type/Language/Index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ all languages from all site configurations are displayed in the new field.
6565
Fields of type `language` are now hidden by default if only one language is
6666
available.
6767

68-
Fields of type `language` are hidden by default if only one language is
69-
available. They can be displayed nonetheless by setting
68+
`language` fields are hidden by default if only one language is
69+
available. If they should be displayed, set
7070
`showIfEmpty <https://docs.typo3.org/permalink/t3tca:confval-select-single-showIfEmpty>`_.
7171

7272
Reasons why only one language is available include:
7373

74-
* Only one language has been configured in the
74+
* Only one language has been configured in :doc:`Site Management <t3translate:SettingUpLanguages/Index#site-management>`
7575

7676

7777
.. _columns-language-examples:

Documentation/ColumnsConfig/Type/Select/CheckBox/Index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,6 @@ Properties of the TCA column type `select` with renderType `selectCheckBox`
124124

125125
.. include:: _Properties/_ReadOnly.rst.txt
126126
:show-buttons:
127+
128+
.. include:: _Properties/_ShowIfEmpty.rst.txt
129+
:show-buttons:

Documentation/ColumnsConfig/Type/Select/CheckBox/_Properties/_ShowIfEmpty.rst.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,30 @@
66
:Default: false
77

88
.. versionchanged:: 14.2
9-
Starting with TYPO3 14.2 relational fields are hidden when no selectable
10-
items are available. This option can be used to disable the behaviour.
9+
Starting with TYPO3 14.2, relational fields are hidden when no selectable
10+
items are available. Option `showIfEmpty` will disable this behaviour.
1111

12-
By default a field of type `select` and any render type is hidden when no
13-
select items are available. Setting `showIfEmpty` to true, shows the field
12+
By default, `select` fields and any render types are hidden when no
13+
select items are available. Setting `showIfEmpty` to true displays the field
1414
even if no options are available.
1515

1616
.. code-block:: php
1717
:caption: EXT:my_extension/Configuration/TCA/Overrides/pages.php
1818
1919
$GLOBALS['TCA']['pages']['columns']['some_select_field']['config']['showIfEmpty'] = true;
2020
21-
Possible reasons, why no select items are available:
21+
Possible reasons why no select items are available:
2222

23-
* `foreign_table <https://docs.typo3.org/permalink/t3tca:confval-select-checkbox-foreign-table>`_
24-
was used and the referenced table has no records or none matching the
23+
* a `foreign_table <https://docs.typo3.org/permalink/t3tca:confval-select-checkbox-foreign-table>`_
24+
is used and the referenced table has no records or none matching the
2525
`foreign_table_where <https://docs.typo3.org/permalink/t3tca:confval-select-checkbox-foreign-table-where>`_.
26-
* `foreign_table <https://docs.typo3.org/permalink/t3tca:confval-select-checkbox-foreign-table>`_
27-
was used and the currently logged in user has not permissions for the
28-
referenced table or all of it records.
29-
* All items have been hidden via page TSconfig, for example via
26+
* a `foreign_table <https://docs.typo3.org/permalink/t3tca:confval-select-checkbox-foreign-table>`_
27+
is used and the currently logged in user has no permissions for the
28+
referenced table or its records.
29+
* All items have been hidden via page TSconfig, for example,
3030
`removeItems <https://docs.typo3.org/permalink/t3tsref:tceform-removeitems>`_
3131
or `keepItems <https://docs.typo3.org/permalink/t3tsref:confval-tceform-keepitems>`_
32-
is inproperly configured.
32+
are inproperly configured.
3333
* The `itemsProcessors <https://docs.typo3.org/permalink/t3tca:confval-select-checkbox-itemsprocessors>`_
3434
or `itemsProcFunc <https://docs.typo3.org/permalink/t3tca:confval-select-checkbox-itemsprocfunc>`_
3535
had no result.

Documentation/ColumnsConfig/Type/Select/MultipleSideBySide/_Properties/_ShowIfEmpty.rst.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,30 @@
66
:Default: false
77

88
.. versionchanged:: 14.2
9-
Starting with TYPO3 14.2 relational fields are hidden when no selectable
10-
items are available. This option can be used to disable the behaviour.
9+
Starting with TYPO3 14.2, relational fields are hidden when no selectable
10+
items are available. Option `showIfEmpty` will disable this behaviour.
1111

12-
By default a field of type `select` and any render type is hidden when no
13-
select items are available. Setting `showIfEmpty` to true, shows the field
12+
By default, `select` fields and any render types are hidden when no
13+
select items are available. Setting `showIfEmpty` to true displays the field
1414
even if no options are available.
1515

1616
.. code-block:: php
1717
:caption: EXT:my_extension/Configuration/TCA/Overrides/pages.php
1818
1919
$GLOBALS['TCA']['pages']['columns']['some_select_field']['config']['showIfEmpty'] = true;
2020
21-
Possible reasons, why no select items are available:
21+
Possible reasons why no select items are available:
2222

23-
* `foreign_table <https://docs.typo3.org/permalink/t3tca:confval-select-byside-foreign-table>`_
24-
was used and the referenced table has no records or none matching the
23+
* a `foreign_table <https://docs.typo3.org/permalink/t3tca:confval-select-byside-foreign-table>`_
24+
is used and the referenced table has no records or none matching the
2525
`foreign_table_where <https://docs.typo3.org/permalink/t3tca:confval-select-byside-foreign-table-where>`_.
26-
* `foreign_table <https://docs.typo3.org/permalink/t3tca:confval-select-byside-foreign-table>`_
27-
was used and the currently logged in user has not permissions for the
26+
* a `foreign_table <https://docs.typo3.org/permalink/t3tca:confval-select-byside-foreign-table>`_
27+
is used and the currently logged in user has no permissions for the
2828
referenced table or all of it records.
29-
* All items have been hidden via page TSconfig, for example via
29+
* All items have been hidden via page TSconfig, for example,
3030
`removeItems <https://docs.typo3.org/permalink/t3tsref:tceform-removeitems>`_
3131
or `keepItems <https://docs.typo3.org/permalink/t3tsref:confval-tceform-keepitems>`_
32-
is inproperly configured.
32+
are inproperly configured.
3333
* The `itemsProcessors <https://docs.typo3.org/permalink/t3tca:confval-select-byside-itemsprocessors>`_
3434
or `itemsProcFunc <https://docs.typo3.org/permalink/t3tca:confval-select-byside-itemsprocfunc>`_
3535
had no result.

Documentation/ColumnsConfig/Type/Select/Single/_Properties/_ShowIfEmpty.rst.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,30 @@
66
:Default: false
77

88
.. versionchanged:: 14.2
9-
Starting with TYPO3 14.2 relational fields are hidden when no selectable
10-
items are available. This option can be used to disable the behaviour.
9+
Starting with TYPO3 14.2, relational fields are hidden when no selectable
10+
items are available. Option `showIfEmpty` will disable this behaviour.
1111

12-
By default a field of type `select` and any render type is hidden when no
13-
select items are available. Setting `showIfEmpty` to true, shows the field
12+
By default, `select` fields and any render types are hidden when no
13+
select items are available. Setting `showIfEmpty` to true displays the field
1414
even if no options are available.
1515

1616
.. code-block:: php
1717
:caption: EXT:my_extension/Configuration/TCA/Overrides/pages.php
1818
1919
$GLOBALS['TCA']['pages']['columns']['some_select_field']['config']['showIfEmpty'] = true;
2020
21-
Possible reasons, why no select items are available:
21+
Possible reasons why no select items are available:
2222

23-
* `foreign_table <https://docs.typo3.org/permalink/t3tca:confval-select-single-foreign-table>`_
24-
was used and the referenced table has no records or none matching the
23+
* a `foreign_table <https://docs.typo3.org/permalink/t3tca:confval-select-single-foreign-table>`_
24+
is used and the referenced table has no records or none matching the
2525
`foreign_table_where <https://docs.typo3.org/permalink/t3tca:confval-select-single-foreign-table-where>`_.
26-
* `foreign_table <https://docs.typo3.org/permalink/t3tca:confval-select-single-foreign-table>`_
27-
was used and the currently logged in user has not permissions for the
28-
referenced table or all of it records.
29-
* All items have been hidden via page TSconfig, for example via
26+
* a `foreign_table <https://docs.typo3.org/permalink/t3tca:confval-select-single-foreign-table>`_
27+
is used and the currently logged in user has no permissions for the
28+
referenced table or its records.
29+
* All items have been hidden via page TSconfig, for example,
3030
`removeItems <https://docs.typo3.org/permalink/t3tsref:tceform-removeitems>`_
3131
or `keepItems <https://docs.typo3.org/permalink/t3tsref:confval-tceform-keepitems>`_
32-
is inproperly configured.
32+
are inproperly configured.
3333
* The `itemsProcessors <https://docs.typo3.org/permalink/t3tca:confval-select-single-itemsprocessors>`_
3434
or `itemsProcFunc <https://docs.typo3.org/permalink/t3tca:confval-select-single-itemsprocfunc>`_
3535
had no result.

0 commit comments

Comments
 (0)