From b94bbd9f16e27c9da9af726c9dab0628e2c8e8d9 Mon Sep 17 00:00:00 2001 From: Lina Wolf <48202465+linawolf@users.noreply.github.com> Date: Fri, 29 Sep 2023 09:40:48 +0200 Subject: [PATCH 1/3] Add a hint to description from fieldInformation This just really confused my co workers --- .../ColumnsConfig/CommonProperties/FieldInformation.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/ColumnsConfig/CommonProperties/FieldInformation.rst b/Documentation/ColumnsConfig/CommonProperties/FieldInformation.rst index d5711cd8..b7558b92 100644 --- a/Documentation/ColumnsConfig/CommonProperties/FieldInformation.rst +++ b/Documentation/ColumnsConfig/CommonProperties/FieldInformation.rst @@ -20,3 +20,8 @@ fieldInformation works identical to the "fieldWizard" property, no default configuration in the core exists (yet). In contrast to "fieldWizard", HTML returned by fieldInformation is limited, see :ref:`FormEngine docs ` for more details. + +.. hint:: + + :php:`fieldInformation` is not implemented by default. Use :ref:`columns-properties-description` + display general information below a fields title. From 8ff7a6be09e0d8337019d1bfb580982e491deeb3 Mon Sep 17 00:00:00 2001 From: Lina Wolf <48202465+linawolf@users.noreply.github.com> Date: Fri, 29 Sep 2023 09:59:31 +0200 Subject: [PATCH 2/3] Add example --- .../CommonProperties/FieldInformation.rst | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/Documentation/ColumnsConfig/CommonProperties/FieldInformation.rst b/Documentation/ColumnsConfig/CommonProperties/FieldInformation.rst index b7558b92..d661ba91 100644 --- a/Documentation/ColumnsConfig/CommonProperties/FieldInformation.rst +++ b/Documentation/ColumnsConfig/CommonProperties/FieldInformation.rst @@ -25,3 +25,60 @@ fieldInformation :php:`fieldInformation` is not implemented by default. Use :ref:`columns-properties-description` display general information below a fields title. + +Example +======= + +You can have a look at the extension `georgringer/news` in version 9.4 for an example: +https://github.com/georgringer/news/blob/9.4.0/Configuration/TCA/tx_news_domain_model_news.php#L521 +(with `georgringer/news ^10.0` this was moved to a non-public extension). + +.. code-block:: php + :caption: EXT:news/Configuration/TCA/tx_news_domain_model_news.php (Excerpt) + + 'tags' => [ + 'config' => [ + // ... + 'fieldInformation' => [ + 'tagInformation' => [ + 'renderType' => 'NewsStaticText', + 'options' => [ + 'labels' => [ + [ + 'label' => '', + 'bold' => true, + 'italic' => true, + ], + ], + ], + ], + ], + ] + + +The implementation can be found in https://github.com/georgringer/news/blob/9.4.0/Classes/Backend/FieldInformation/StaticText.php: + +.. code-block:: php + + [ + 'TYPO3/CMS/News/TagSuggestWizard', + ], + 'html' => '...>', + ]; + } + } From 358d470bf026f1a01062a1305d483ea1a9988633 Mon Sep 17 00:00:00 2001 From: Lina Wolf <48202465+linawolf@users.noreply.github.com> Date: Fri, 29 Sep 2023 19:24:26 +0200 Subject: [PATCH 3/3] Update Documentation/ColumnsConfig/CommonProperties/FieldInformation.rst MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Chris Müller <2566282+brotkrueml@users.noreply.github.com> --- .../ColumnsConfig/CommonProperties/FieldInformation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/ColumnsConfig/CommonProperties/FieldInformation.rst b/Documentation/ColumnsConfig/CommonProperties/FieldInformation.rst index d661ba91..f662046d 100644 --- a/Documentation/ColumnsConfig/CommonProperties/FieldInformation.rst +++ b/Documentation/ColumnsConfig/CommonProperties/FieldInformation.rst @@ -24,7 +24,7 @@ fieldInformation .. hint:: :php:`fieldInformation` is not implemented by default. Use :ref:`columns-properties-description` - display general information below a fields title. + to display general information below a fields title. Example =======