forked from cedricziel/jfmulticontent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
50 lines (44 loc) · 2.37 KB
/
ext_localconf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$confArr = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY]);
if ($confArr['ttNewsCodes']) {
// Add the additional CODES to tt_news
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tt_news']['what_to_display'][] = array(
0 => 'LIST_ACCORDION',
1 => 'LIST_ACCORDION'
);
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tt_news']['what_to_display'][] = array(
0 => 'LIST_SLIDER',
1 => 'LIST_SLIDER'
);
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tt_news']['what_to_display'][] = array(
0 => 'LIST_SLIDEDECK',
1 => 'LIST_SLIDEDECK'
);
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tt_news']['what_to_display'][] = array(
0 => 'LIST_EASYACCORDION',
1 => 'LIST_EASYACCORDION'
);
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tt_news']['extraCodesHook'][] = 'EXT:' . $_EXTKEY . '/lib/class.tx_jfmulticontent_ttnews_extend.php:tx_jfmulticontent_ttnews_extend';
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tt_news']['extraGlobalMarkerHook'][] = 'EXT:' . $_EXTKEY . '/lib/class.tx_jfmulticontent_ttnews_extend.php:tx_jfmulticontent_ttnews_extend';
}
// Page module hook
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info']['jfmulticontent_pi1']['jfmulticontent'] = 'EXT:' . $_EXTKEY . '/lib/class.tx_jfmulticontent_cms_layout.php:tx_jfmulticontent_cms_layout->getExtensionSummary';
// Save the content
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][$_EXTKEY] = 'EXT:' . $_EXTKEY . '/lib/class.tx_jfmulticontent_tcemain.php:&tx_jfmulticontent_tcemain';
if ($confArr['addBrowseLinks']) {
// Add browseLinksHook
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/class.browse_links.php']['browseLinksHook'][] = 'EXT:' . $_EXTKEY . '/lib/class.tx_jfmulticontent_browselinkshooks.php:&tx_jfmulticontent_browselinkshooks';
if (t3lib_extMgm::isLoaded('rtehtmlarea')) {
$TYPO3_CONF_VARS['SC_OPTIONS']['ext/rtehtmlarea/mod3/class.tx_rtehtmlarea_browse_links.php']['browseLinksHook'][] = 'EXT:' . $_EXTKEY . '/lib/class.tx_jfmulticontent_browselinkshooks.php:&tx_jfmulticontent_browselinkshooks';
}
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43(
$_EXTKEY,
'pi1/class.tx_jfmulticontent_pi1.php',
'_pi1',
'list_type',
1
);