-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
48 lines (43 loc) · 1.56 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
<?php
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(
function($extKey)
{
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Cobra3.BraPersonUkd',
'Pi1',
[
'Person' => 'list'
],
// non-cacheable actions
[
'Person' => ''
]
);
// wizards
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'mod {
wizards.newContentElement.wizardItems.plugins {
elements {
pi1 {
icon = ' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($extKey) . 'Resources/Public/Icons/user_plugin_pi1.svg
title = LLL:EXT:bra_person_ukd/Resources/Private/Language/locallang_db.xlf:tx_bra_person_ukd_domain_model_pi1
description = LLL:EXT:bra_person_ukd/Resources/Private/Language/locallang_db.xlf:tx_bra_person_ukd_domain_model_pi1.description
tt_content_defValues {
CType = list
list_type = brapersonukd_pi1
}
}
}
show = *
}
}'
);
},
$_EXTKEY
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = 'Cobra3\BraPersonUkd\Task\ImportCommandController';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = 'Cobra3\BraPersonUkd\Task\ConvertCommandController';
// Page module hook
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info']['brapersonukd' . '_pi1']['brapersonukd'] =
'Cobra3\\BraPersonUkd\\Hooks\\PageLayoutView->getExtensionSummary';