diff --git a/typo3/sysext/reactions/Documentation/Reactions/CreateDatabaseRecord/Index.rst b/typo3/sysext/reactions/Documentation/Reactions/CreateDatabaseRecord/Index.rst index f4f8bdc4b85b77af5a9285d24697f23113d6c13f..71adf8e7ed3cff87c676f19980927a5f874705bf 100644 --- a/typo3/sysext/reactions/Documentation/Reactions/CreateDatabaseRecord/Index.rst +++ b/typo3/sysext/reactions/Documentation/Reactions/CreateDatabaseRecord/Index.rst @@ -65,7 +65,8 @@ available: Table Select one of the tables from the list. The corresponding fields displayed - below change depending on the selected table. + below change depending on the selected table. See also + :ref:`create-database-record-extend-tables-list` on how to extend this list. Storage PID Select the page on which a new record should be stored. @@ -137,3 +138,32 @@ The content is now available on the configured page: The created page content record on the configured page + +.. _create-database-record-extend-tables-list: + +Extend list of tables +===================== + +By default, only a few tables can be selected for external creation in the +create record reaction. In case you want to allow your own tables to be +available in the reaction's table selection, add the table in a corresponding +:ref:`TCA override file <t3coreapi:storing-changes-extension-overrides>`: + +.. code-block:: php + :caption: EXT:my_extension/Configuration/TCA/Overrides/sys_reaction.php + + if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('reactions')) { + \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem( + 'sys_reaction', + 'tx_myextension_domain_model_mytable', + [ + 'LLL:EXT:myext/Resources/Private/Language/locallang.xlf:tx_myextension_domain_model_mytable', + 'tx_myextension_domain_model_mytable', + 'myextension-tx_myextension_domain_model_mytable-icon', + ] + ); + } + +In case your extension depends on EXT:reactions the :php:`isLoaded()` check +might be skipped. Please note that tables which configured +:ref:`adminOnly <t3tca:ctrl-reference-adminonly>` to true are not allowed. diff --git a/typo3/sysext/reactions/Documentation/Settings.cfg b/typo3/sysext/reactions/Documentation/Settings.cfg index ce966cd8b116805a80bfc9e2bb375aac7695c597..043f36b3f652d2945cf444deccd9e49875f41ae4 100644 --- a/typo3/sysext/reactions/Documentation/Settings.cfg +++ b/typo3/sysext/reactions/Documentation/Settings.cfg @@ -36,7 +36,7 @@ t3coreapi = https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ # t3home = https://docs.typo3.org/ # t3sitepackage = https://docs.typo3.org/m/typo3/tutorial-sitepackage/main/en-us/ t3start = https://docs.typo3.org/m/typo3/tutorial-getting-started/main/en-us/ -# t3tca = https://docs.typo3.org/m/typo3/reference-tca/main/en-us/ +t3tca = https://docs.typo3.org/m/typo3/reference-tca/main/en-us/ # t3translate = https://docs.typo3.org/m/typo3/guide-frontendlocalization/main/en-us/ # t3tsconfig = https://docs.typo3.org/m/typo3/reference-tsconfig/main/en-us/ # t3tsref = https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/