Skip to content

Commit

Permalink
[TASK] Use new syntax to import PageTSconfig
Browse files Browse the repository at this point in the history
This replaces all left-overs in some `ext_localconf.php` files.

Resolves: #90482
Releases: master, 9.5
Change-Id: Ie2e2ace313a4756b382a6f247c6e2c17903c9357
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63363
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Daniel Goerz <daniel.goerz@posteo.de>
Tested-by: Susanne Moog <look@susi.dev>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Susanne Moog <look@susi.dev>
  • Loading branch information
o-ba authored and susannemoog committed Feb 22, 2020
1 parent 479db3f commit ca22b7e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion typo3/sysext/backend/ext_localconf.php
Expand Up @@ -29,7 +29,9 @@
$GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['page'] = 'pages';

// Include base TSconfig setup
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:backend/Configuration/TSconfig/Page/Mod/Wizards/NewContentElement.tsconfig">');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
"@import 'EXT:backend/Configuration/TSconfig/Page/Mod/Wizards/NewContentElement.tsconfig'"
);

// Register BackendLayoutDataProvider for PageTs
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['BackendLayoutDataProvider']['pagets'] = \TYPO3\CMS\Backend\Provider\PageTsBackendLayoutDataProvider::class;
Expand Down
2 changes: 1 addition & 1 deletion typo3/sysext/form/ext_localconf.php
Expand Up @@ -36,7 +36,7 @@

// Add new content element wizard entry
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:form/Configuration/PageTS/modWizards.tsconfig">'
"@import 'EXT:form/Configuration/PageTS/modWizards.tsconfig'"
);

// Add module configuration
Expand Down
4 changes: 2 additions & 2 deletions typo3/sysext/frontend/ext_localconf.php
Expand Up @@ -95,9 +95,9 @@

// Include new content elements to modWizards
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:frontend/Configuration/TSconfig/Page/Mod/Wizards/NewContentElement.tsconfig">'
"@import 'EXT:frontend/Configuration/TSconfig/Page/Mod/Wizards/NewContentElement.tsconfig'"
);
// Include FormEngine adjustments
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:frontend/Configuration/TSconfig/Page/TCEFORM.tsconfig">'
"@import 'EXT:frontend/Configuration/TSconfig/Page/TCEFORM.tsconfig'"
);
2 changes: 1 addition & 1 deletion typo3/sysext/linkvalidator/ext_localconf.php
Expand Up @@ -2,7 +2,7 @@
defined('TYPO3_MODE') or die();

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:linkvalidator/Configuration/TsConfig/Page/pagetsconfig.tsconfig">'
"@import 'EXT:linkvalidator/Configuration/TsConfig/Page/pagetsconfig.tsconfig'"
);

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\TYPO3\CMS\Linkvalidator\Task\ValidatorTask::class] = [
Expand Down

0 comments on commit ca22b7e

Please sign in to comment.