|
6 | 6 | :Default: false |
7 | 7 |
|
8 | 8 | .. 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. |
11 | 11 |
|
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 |
14 | 14 | even if no options are available. |
15 | 15 |
|
16 | 16 | .. code-block:: php |
17 | 17 | :caption: EXT:my_extension/Configuration/TCA/Overrides/pages.php |
18 | 18 |
|
19 | 19 | $GLOBALS['TCA']['pages']['columns']['some_select_field']['config']['showIfEmpty'] = true; |
20 | 20 |
|
21 | | - Possible reasons, why no select items are available: |
| 21 | + Possible reasons why no select items are available: |
22 | 22 |
|
23 | | - * `foreign_table <https://docs.typo3.org/permalink/t3tca:confval-select-tree-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-tree-foreign-table>`_ |
| 24 | + is used and the referenced table has no records or none matching the |
25 | 25 | `foreign_table_where <https://docs.typo3.org/permalink/t3tca:confval-select-tree-foreign-table-where>`_. |
26 | | - * `foreign_table <https://docs.typo3.org/permalink/t3tca:confval-select-tree-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-tree-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, |
30 | 30 | `removeItems <https://docs.typo3.org/permalink/t3tsref:tceform-removeitems>`_ |
31 | 31 | or `keepItems <https://docs.typo3.org/permalink/t3tsref:confval-tceform-keepitems>`_ |
32 | | - is inproperly configured. |
| 32 | + are inproperly configured. |
33 | 33 | * The `itemsProcessors <https://docs.typo3.org/permalink/t3tca:confval-select-tree-itemsprocessors>`_ |
34 | 34 | or `itemsProcFunc <https://docs.typo3.org/permalink/t3tca:confval-select-tree-itemsprocfunc>`_ |
35 | 35 | had no result. |
0 commit comments