From a3fad6293bd1bd2f435e0e928fc8e629282f5461 Mon Sep 17 00:00:00 2001 From: Simon Schaufelberger Date: Sun, 17 Nov 2024 21:09:20 +0100 Subject: [PATCH] [TASK] Move Page TypoScript Config into own file Prepare for https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/13.0/Deprecation-101799-ExtensionManagementUtilityaddPageTSConfig.html --- Configuration/page.tsconfig | 14 ++++++++++++++ ext_localconf.php | 14 +------------- 2 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 Configuration/page.tsconfig diff --git a/Configuration/page.tsconfig b/Configuration/page.tsconfig new file mode 100644 index 0000000..fae779b --- /dev/null +++ b/Configuration/page.tsconfig @@ -0,0 +1,14 @@ +mod.wizards.newContentElement.wizardItems.plugins { + elements { + odsosm { + iconIdentifier = ods_osm + title = LLL:EXT:ods_osm/Resources/Private/Language/locallang.xlf:pi1_title + description = LLL:EXT:ods_osm/Resources/Private/Language/locallang.xlf:pi1_plus_wiz_description + tt_content_defValues { + CType = list + list_type = ods_osm_pi1 + } + } + } + show := addToList(odsosm) +} diff --git a/ext_localconf.php b/ext_localconf.php index 9e8e8a9..73fd354 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -23,19 +23,7 @@ 1 ); -ExtensionManagementUtility::addPageTSConfig(' -mod.wizards.newContentElement.wizardItems.plugins.elements.odsosm { - iconIdentifier = ods_osm - title = LLL:EXT:ods_osm/Resources/Private/Language/locallang.xlf:pi1_title - description = LLL:EXT:ods_osm/Resources/Private/Language/locallang.xlf:pi1_plus_wiz_description - tt_content_defValues { - CType = list - list_type = ods_osm_pi1 - } -} - -mod.wizards.newContentElement.wizardItems.plugins.show := addToList(odsosm) -'); +ExtensionManagementUtility::addPageTSConfig('@import \'EXT:ods_osm/Configuration/page.tsconfig\''); ExtensionManagementUtility::addUserTSConfig(' options.saveDocNew.tx_odsosm_track=1