-
Notifications
You must be signed in to change notification settings - Fork 2
/
ext_tables.php
30 lines (25 loc) · 1.28 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
<?php
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(
function () {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('openimmo', 'Configuration/TypoScript', 'openimmo');
$tcaFields = \TYPO3\CMS\Core\Utility\GeneralUtility::getAllFilesAndFoldersInPath([], \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('openimmo', 'Configuration/TCA/'));
foreach ($tcaFields as $file) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages(basename($file, 'php'));
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'Ujamii.OpenImmoTypo3',
'Immobilien',
'Immobilien',
'EXT:openimmo/Resources/Public/Icons/user_plugin_immobilien.svg'
);
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['openimmotypo3_immobilien'] = 'pages,recursive';
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'Ujamii.OpenImmoTypo3',
'Suche',
'Suche',
'EXT:openimmo/Resources/Public/Icons/user_plugin_immobilien.svg'
);
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['openimmotypo3_suche'] = 'pages,recursive';
}
);