diff --git a/Documentation/ColumnsConfig/CommonProperties/FieldInformation.rst b/Documentation/ColumnsConfig/CommonProperties/FieldInformation.rst index d5711cd8..f662046d 100644 --- a/Documentation/ColumnsConfig/CommonProperties/FieldInformation.rst +++ b/Documentation/ColumnsConfig/CommonProperties/FieldInformation.rst @@ -20,3 +20,65 @@ 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` + to 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' => '...>', + ]; + } + }