-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
executable file
·36 lines (30 loc) · 1.59 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
<?php
defined('TYPO3_MODE') or die();
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('options.saveDocNew.tx_macinabanners_banners=1');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43('macina_banners', 'Classes/Plugin/Pi1.php', '_pi1', 'list_type', 1);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript('macina_banners', 'setup',
'plugin.tx_macinabanners_pi1.userFunc = JBartels\\MacinaBanners\\Plugin\\Pi1->main');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript('macina_banners', 'setup', '
tt_content.shortcut.20.0.conf.tx_macinabanners_banners = < plugin.tx_macinabanners_banners_pi1
tt_content.shortcut.20.0.conf.tx_macinabanners_banners.CMD = singleView
', 43);
$icons = [
'ext-macinabanners-wizard-icon' => 'Extension.svg',
];
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
foreach ($icons as $identifier => $path) {
$iconRegistry->registerIcon(
$identifier,
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:macina_banners/Resources/Public/Icons/' . $path]
);
}
// add New CE-wizard elements
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:macina_banners/Configuration/PageTS/NewContentElementWizard.typoscript">'
);
// Support for banners in the Page module
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cms']['db_layout']['addTables']['tx_macinabanners_banners'][0] = [
'fList' => 'customer;image;url;placement,bannertype',
'icon' => true
];