-
Notifications
You must be signed in to change notification settings - Fork 7
/
ext_tables.php
53 lines (47 loc) · 2.04 KB
/
ext_tables.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
51
52
53
<?php
if (!defined ('TYPO3_MODE')) die ('Access denied.');
/* Set up the tt_content fields for the two frontend plugins */
/* DO NOT MOVE TO Configuration/TCA/Overrides/tt_content.php! */
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['wec_map_pi1']='layout,select_key,pages,recursive';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['wec_map_pi2']='layout,select_key,pages,recursive';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['wec_map_pi3']='layout,select_key,pages,recursive';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['wec_map_pi1']='pi_flexform';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['wec_map_pi2']='pi_flexform';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['wec_map_pi3']='pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_wecmap_external');
if (TYPO3_MODE == 'BE') {
/**
* Registers a Backend Module
*/
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'JBartels.wec_map',
'web', // Make module a submodule of 'web'
'FEUserMap', // Submodule key
'', // Position
array(
'FeUserMapBackendModule' =>
'show,alert',
),
array(
'access' => 'admin',
'icon' => 'EXT:wec_map/ext_icon.gif',
'labels' => 'LLL:EXT:wec_map/Resources/Private/Languages/Backend/FEUserMap/locallang.xlf',
)
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'JBartels.wec_map',
'tools', // Make module a submodule of 'admin tools'
'MapAdministration', // Submodule key
'', // Position
array(
'MapAdministrationBackendModule' =>
'geocode,batch,download,apikey,editCacheEntry,saveCacheEntry,closeCacheEntry,deleteCacheEntry,deleteCache',
),
array(
'access' => 'admin',
'icon' => 'EXT:wec_map/ext_icon.gif',
'labels' => 'LLL:EXT:wec_map/Resources/Private/Languages/Backend/MapAdministration/locallang.xlf',
)
);
}
?>