This repository has been archived by the owner on May 23, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.php
33 lines (23 loc) · 1.51 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
<?php
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(
function()
{
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'SD.SdGooglemaps',
'Gm',
'Google Maps'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('sd_googlemaps', 'Configuration/TypoScript', 'Google Maps');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_sdgooglemaps_domain_model_marker');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_sdgooglemaps_domain_model_map', 'EXT:sd_googlemaps/Resources/Private/Language/locallang_csh_tx_sdgooglemaps_domain_model_map.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_sdgooglemaps_domain_model_map');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_sdgooglemaps_domain_model_coordinate');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_sdgooglemaps_domain_model_style');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_sdgooglemaps_domain_model_styler');
// Add Flexform
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['sdgooglemaps_gm']='pi_flexform';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['sdgooglemaps_gm']='recursive,pages';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('sdgooglemaps_gm', 'FILE:EXT:sd_googlemaps/Configuration/FlexForms/flexform_gm.xml');
}
);