Skip to content

Commit

Permalink
[TASK] Move plugin registration
Browse files Browse the repository at this point in the history
  • Loading branch information
georgringer committed Jul 26, 2024
1 parent 1f4a299 commit 2a7ad10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Configuration/TCA/Overrides/tt_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'tt_address',
'ListView',
'LLL:EXT:tt_address/Resources/Private/Language/db/locallang.xlf:extbase_title'
'LLL:EXT:tt_address/Resources/Private/Language/db/locallang.xlf:extbase_title',
'tt-address-plugin',
'plugins',
'LLL:EXT:tt_address/Resources/Private/Language/db/locallang.xlf:extbase_description'
);

$pluginSignature = 'ttaddress_listview';
Expand Down
4 changes: 3 additions & 1 deletion ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
'class' => \FriendsOfTYPO3\TtAddress\FormEngine\FieldControl\LocationMapWizard::class,
];

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:tt_address/Configuration/TSconfig/NewContentElementWizard.typoscript">');
if ((new \TYPO3\CMS\Core\Information\Typo3Version())->getMajorVersion() < 13) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:tt_address/Configuration/TSconfig/NewContentElementWizard.typoscript">');
}

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'TtAddress',
Expand Down

0 comments on commit 2a7ad10

Please sign in to comment.