Skip to content
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.. confval:: showIfEmpty
:name: category-showIfEmpty
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['showIfEmpty']
:type: boolean
:Scope: Display
:Default: false

.. versionchanged:: 14.2
Starting with TYPO3, 14.2 relational fields are hidden when no
selectable items are available. Option `showIfEmpty` will disable this behaviour.

By default, `category` fields are hidden when no categories are
available. Setting `showIfEmpty` to true displays this field type, even if no options
are available.

.. code-block:: php
:caption: EXT:my_extension/Configuration/TCA/Overrides/pages.php

$GLOBALS['TCA']['pages']['columns']['categories']['config']['showIfEmpty'] = true;

Possible reasons why categories may not be available: no category records
have been created, all categories have been deleted, or
the current user has no permissions to access any of the categories.
13 changes: 13 additions & 0 deletions Documentation/ColumnsConfig/Type/Language/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,19 @@ types, except `pages`.
In records on root level (`pid=0`) or on a page, outside of a site context,
all languages from all site configurations are displayed in the new field.

.. versionchanged:: 14.2
Fields of type `language` are now hidden by default if only one language is
available.

`language` fields are hidden by default if only one language is
available. If they should be displayed, set
`showIfEmpty <https://docs.typo3.org/permalink/t3tca:confval-select-single-showIfEmpty>`_.

Reasons why only one language is available include:

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


.. _columns-language-examples:
.. _columns-language-simple-example:

Expand Down
3 changes: 3 additions & 0 deletions Documentation/ColumnsConfig/Type/Select/CheckBox/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,6 @@ Properties of the TCA column type `select` with renderType `selectCheckBox`

.. include:: _Properties/_ReadOnly.rst.txt
:show-buttons:

.. include:: _Properties/_ShowIfEmpty.rst.txt
:show-buttons:
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.. confval:: showIfEmpty
:name: select-checkbox-showIfEmpty
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['showIfEmpty']
:type: boolean
:Scope: Display
:Default: false

.. versionchanged:: 14.2
Starting with TYPO3 14.2, relational fields are hidden when no selectable
items are available. Option `showIfEmpty` will disable this behaviour.

By default, `select` fields and any render types are hidden when no
select items are available. Setting `showIfEmpty` to true displays the field
even if no options are available.

.. code-block:: php
:caption: EXT:my_extension/Configuration/TCA/Overrides/pages.php

$GLOBALS['TCA']['pages']['columns']['some_select_field']['config']['showIfEmpty'] = true;

Possible reasons why no select items are available:

* a `foreign_table <https://docs.typo3.org/permalink/t3tca:confval-select-checkbox-foreign-table>`_
is used and the referenced table has no records or none matching the
`foreign_table_where <https://docs.typo3.org/permalink/t3tca:confval-select-checkbox-foreign-table-where>`_.
* a `foreign_table <https://docs.typo3.org/permalink/t3tca:confval-select-checkbox-foreign-table>`_
is used and the currently logged in user has no permissions for the
referenced table or its records.
* All items have been hidden via page TSconfig, for example,
`removeItems <https://docs.typo3.org/permalink/t3tsref:tceform-removeitems>`_
or `keepItems <https://docs.typo3.org/permalink/t3tsref:confval-tceform-keepitems>`_
are inproperly configured.
* The `itemsProcessors <https://docs.typo3.org/permalink/t3tca:confval-select-checkbox-itemsprocessors>`_
or `itemsProcFunc <https://docs.typo3.org/permalink/t3tca:confval-select-checkbox-itemsprocfunc>`_
had no result.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.. confval:: showIfEmpty
:name: select-byside-showIfEmpty
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['showIfEmpty']
:type: boolean
:Scope: Display
:Default: false

.. versionchanged:: 14.2
Starting with TYPO3 14.2, relational fields are hidden when no selectable
items are available. Option `showIfEmpty` will disable this behaviour.

By default, `select` fields and any render types are hidden when no
select items are available. Setting `showIfEmpty` to true displays the field
even if no options are available.

.. code-block:: php
:caption: EXT:my_extension/Configuration/TCA/Overrides/pages.php

$GLOBALS['TCA']['pages']['columns']['some_select_field']['config']['showIfEmpty'] = true;

Possible reasons why no select items are available:

* a `foreign_table <https://docs.typo3.org/permalink/t3tca:confval-select-byside-foreign-table>`_
is used and the referenced table has no records or none matching the
`foreign_table_where <https://docs.typo3.org/permalink/t3tca:confval-select-byside-foreign-table-where>`_.
* a `foreign_table <https://docs.typo3.org/permalink/t3tca:confval-select-byside-foreign-table>`_
is used and the currently logged in user has no permissions for the
referenced table or all of it records.
* All items have been hidden via page TSconfig, for example,
`removeItems <https://docs.typo3.org/permalink/t3tsref:tceform-removeitems>`_
or `keepItems <https://docs.typo3.org/permalink/t3tsref:confval-tceform-keepitems>`_
are inproperly configured.
* The `itemsProcessors <https://docs.typo3.org/permalink/t3tca:confval-select-byside-itemsprocessors>`_
or `itemsProcFunc <https://docs.typo3.org/permalink/t3tca:confval-select-byside-itemsprocfunc>`_
had no result.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.. confval:: showIfEmpty
:name: select-single-showIfEmpty
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['showIfEmpty']
:type: boolean
:Scope: Display
:Default: false

.. versionchanged:: 14.2
Starting with TYPO3 14.2, relational fields are hidden when no selectable
items are available. Option `showIfEmpty` will disable this behaviour.

By default, `select` fields and any render types are hidden when no
select items are available. Setting `showIfEmpty` to true displays the field
even if no options are available.

.. code-block:: php
:caption: EXT:my_extension/Configuration/TCA/Overrides/pages.php

$GLOBALS['TCA']['pages']['columns']['some_select_field']['config']['showIfEmpty'] = true;

Possible reasons why no select items are available:

* a `foreign_table <https://docs.typo3.org/permalink/t3tca:confval-select-single-foreign-table>`_
is used and the referenced table has no records or none matching the
`foreign_table_where <https://docs.typo3.org/permalink/t3tca:confval-select-single-foreign-table-where>`_.
* a `foreign_table <https://docs.typo3.org/permalink/t3tca:confval-select-single-foreign-table>`_
is used and the currently logged in user has no permissions for the
referenced table or its records.
* All items have been hidden via page TSconfig, for example,
`removeItems <https://docs.typo3.org/permalink/t3tsref:tceform-removeitems>`_
or `keepItems <https://docs.typo3.org/permalink/t3tsref:confval-tceform-keepitems>`_
are inproperly configured.
* The `itemsProcessors <https://docs.typo3.org/permalink/t3tca:confval-select-single-itemsprocessors>`_
or `itemsProcFunc <https://docs.typo3.org/permalink/t3tca:confval-select-single-itemsprocfunc>`_
had no result.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.. confval:: showIfEmpty
:name: select-singlebox-showIfEmpty
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['showIfEmpty']
:type: boolean
:Scope: Display
:Default: false

.. versionchanged:: 14.2
Starting with TYPO3 14.2 relational fields are hidden when no selectable
items are available. This option can be used to disable the behaviour.

By default a field of type `select` and any render type is hidden when no
select items are available. Setting `showIfEmpty` to true, shows the field
even if no options are available.

.. code-block:: php
:caption: EXT:my_extension/Configuration/TCA/Overrides/pages.php

$GLOBALS['TCA']['pages']['columns']['some_select_field']['config']['showIfEmpty'] = true;

Possible reasons, why no select items are available:

* `foreign_table <https://docs.typo3.org/permalink/t3tca:confval-select-singlebox-foreign-table>`_
was used and the referenced table has no records or none matching the
`foreign_table_where <https://docs.typo3.org/permalink/t3tca:confval-select-singlebox-foreign-table-where>`_.
* `foreign_table <https://docs.typo3.org/permalink/t3tca:confval-select-singlebox-foreign-table>`_
was used and the currently logged in user has not permissions for the
referenced table or all of it records.
* All items have been hidden via page TSconfig, for example via
`removeItems <https://docs.typo3.org/permalink/t3tsref:tceform-removeitems>`_
or `keepItems <https://docs.typo3.org/permalink/t3tsref:confval-tceform-keepitems>`_
is inproperly configured.
* The `itemsProcessors <https://docs.typo3.org/permalink/t3tca:confval-select-singlebox-itemsprocessors>`_
or `itemsProcFunc <https://docs.typo3.org/permalink/t3tca:confval-select-singlebox-itemsprocfunc>`_
had no result.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.. confval:: showIfEmpty
:name: select-tree-showIfEmpty
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['showIfEmpty']
:type: boolean
:Scope: Display
:Default: false

.. versionchanged:: 14.2
Starting with TYPO3 14.2, relational fields are hidden when no selectable
items are available. Option `showIfEmpty` will disable this behaviour.

By default, `select` fields and any render types are hidden when no
select items are available. Setting `showIfEmpty` to true displays the field
even if no options are available.

.. code-block:: php
:caption: EXT:my_extension/Configuration/TCA/Overrides/pages.php

$GLOBALS['TCA']['pages']['columns']['some_select_field']['config']['showIfEmpty'] = true;

Possible reasons why no select items are available:

* a `foreign_table <https://docs.typo3.org/permalink/t3tca:confval-select-tree-foreign-table>`_
is used and the referenced table has no records or none matching the
`foreign_table_where <https://docs.typo3.org/permalink/t3tca:confval-select-tree-foreign-table-where>`_.
* a `foreign_table <https://docs.typo3.org/permalink/t3tca:confval-select-tree-foreign-table>`_
is used and the currently logged in user has no permissions for the
referenced table or its records.
* All items have been hidden via page TSconfig, for example,
`removeItems <https://docs.typo3.org/permalink/t3tsref:tceform-removeitems>`_
or `keepItems <https://docs.typo3.org/permalink/t3tsref:confval-tceform-keepitems>`_
are inproperly configured.
* The `itemsProcessors <https://docs.typo3.org/permalink/t3tca:confval-select-tree-itemsprocessors>`_
or `itemsProcFunc <https://docs.typo3.org/permalink/t3tca:confval-select-tree-itemsprocfunc>`_
had no result.