diff --git a/ext_emconf.php b/ext_emconf.php index fface535e76267f61ba9c14ea9d5654f394be421..4e64fb56a967eae2bbb7640b4d0487e6dda14747 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -29,6 +29,7 @@ $EM_CONF[$_EXTKEY] = [ 'suggests' => [ 'sg_comments' => '2.1.0-', 'rx_shariff' => '5.0.1-', + 'sg_ajax' => '1.0.6-', ], ], 'suggests' => [], diff --git a/ext_localconf.php b/ext_localconf.php index 5206b7098beeb699754919dc99ea807df296ad4e..0ed3fdf6bb7dd568a9d2c74200079b2a557f1856 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -63,10 +63,12 @@ $tsPath = $extPath . 'Configuration/TypoScript/Common/'; ['PageBrowser' => '',] ); -\SGalinski\SgAjax\Service\AjaxRegistration::configureAjaxFrontendPlugin('sg_news', [ - 'Ajax\Like' => 'addLike', - ] -); +if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('sg_ajax')) { + \SGalinski\SgAjax\Service\AjaxRegistration::configureAjaxFrontendPlugin('sg_news', [ + 'Ajax\Like' => 'addLike', + ] + ); +} // hook registration $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = diff --git a/ext_tables.php b/ext_tables.php index 8fe702bb7ca61d19eedab73e2249aca3eaec56cf..eaa1b09b6fcb0ca973c00307f170a077c1bf5774 100644 --- a/ext_tables.php +++ b/ext_tables.php @@ -138,4 +138,6 @@ $GLOBALS['TCA']['pages']['ctrl']['typeicon_classes'][$customPageDoktype] = 'tcar 'options.pageTree.doktypesToShowInNewPageDragArea := addToList(' . $customPageDoktype . ')' ); -\SGalinski\SgAjax\Service\AjaxRegistration::registerAjaxFrontendPlugin('sg_news'); +if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('sg_ajax')) { + \SGalinski\SgAjax\Service\AjaxRegistration::registerAjaxFrontendPlugin('sg_news'); +}