Skip to content

Commit

Permalink
* compatibility TYPO3 9.5: move \TYPO3\CMS\Core\Utility\ExtensionMana…
Browse files Browse the repository at this point in the history
…gementUtility::addStaticFile() into Configuration/TCA/Overrides/sys_template.php .
  • Loading branch information
franzholz committed May 2, 2020
1 parent ec05193 commit 6fb22b7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
2020-05-02 Franz Holzinger <[email protected]>
* bugfix: the tables tt_products_downloads and tt_products_downloads_language will come with version 2.13.2.
* compatibility TYPO3 9.5: move \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToInsertRecords() into the files Overrides/tablename.php
* compatibility TYPO3 9.5: move \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile() into Configuration/TCA/Overrides/sys_template.php .

2020-04-28 Franz Holzinger <[email protected]>
* bugfix: The MatchCondition method checkShipping must read the recs and store them automatically.
Expand Down
12 changes: 12 additions & 0 deletions Configuration/TCA/Overrides/sys_template.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
defined('TYPO3_MODE') || die('Access denied.');

call_user_func(function () {

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile( TT_PRODUCTS_EXT, 'Configuration/TypoScript/PluginSetup/Main/', 'Shop System');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(TT_PRODUCTS_EXT, 'Configuration/TypoScript/PluginSetup/Int/', 'Shop System Variable Content');

if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility:isLoaded( 'searchbox')) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(TT_PRODUCTS_EXT, 'Configuration/TypoScript/PluginSetup/Searchbox/', 'Shop System Search Box');
}
});
8 changes: 0 additions & 8 deletions ext_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@
$emClass = '\\TYPO3\\CMS\\Core\\Utility\\ExtensionManagementUtility';
$divClass = '\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility';

call_user_func($emClass . '::addStaticFile', TT_PRODUCTS_EXT, 'Configuration/TypoScript/PluginSetup/Main/', 'Shop System CSS Styled');
call_user_func($emClass . '::addStaticFile', TT_PRODUCTS_EXT, 'Configuration/TypoScript/PluginSetup/Int/', 'Shop System Variable Content');

if (call_user_func($emClass . '::isLoaded', 'searchbox')) {
call_user_func($emClass . '::addStaticFile', TT_PRODUCTS_EXT, 'Configuration/TypoScript/PluginSetup/Searchbox/', 'Shop System Search Box');
}

call_user_func($emClass . '::allowTableOnStandardPages', 'tt_products');
call_user_func($emClass . '::allowTableOnStandardPages', 'tt_products_language');
call_user_func($emClass . '::allowTableOnStandardPages', 'tt_products_articles');
Expand Down Expand Up @@ -65,4 +58,3 @@
}
});


0 comments on commit 6fb22b7

Please sign in to comment.