Skip to content
Snippets Groups Projects
Commit 9883357c authored by Fabian Galinski's avatar Fabian Galinski :pouting_cat:
Browse files

[TASK] Add sg_ajax as a suggestion

parent ce7ebb87
No related branches found
No related tags found
1 merge request!1Task apply language visibility to the news
......@@ -29,6 +29,7 @@ $EM_CONF[$_EXTKEY] = [
'suggests' => [
'sg_comments' => '2.1.0-',
'rx_shariff' => '5.0.1-',
'sg_ajax' => '1.0.6-',
],
],
'suggests' => [],
......
......@@ -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'][] =
......
......@@ -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');
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment