forked from JanBartels/wec_map
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathext_tables.php
More file actions
59 lines (53 loc) · 2.32 KB
/
Copy pathext_tables.php
File metadata and controls
59 lines (53 loc) · 2.32 KB
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
54
55
56
57
58
59
<?php
/*
* This file is part of the web-tp3/wec_map.
* For the full copyright and license information, please read the
* LICENSE file that was distributed with this source code.
*/
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
[
'FeUserMapBackendModule' =>
'show,alert',
],
[
'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
[
'MapAdministrationBackendModule' =>
'geocode,batch,download,apikey,editCacheEntry,saveCacheEntry,closeCacheEntry,deleteCacheEntry,deleteCache',
],
[
'access' => 'admin',
'icon' => 'EXT:wec_map/ext_icon.gif',
'labels' => 'LLL:EXT:wec_map/Resources/Private/Languages/Backend/MapAdministration/locallang.xlf',
]
);
}