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