forked from jweiland-net/yellowpages2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
25 lines (20 loc) · 1.6 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
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'JWeiland.' . $_EXTKEY,
'Directory',
'LLL:EXT:yellowpages2/Resources/Private/Language/locallang_db.xlf:plugin.title'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Industry Directory');
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_directory'] = 'pi_flexform';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_directory'] = 'select_key';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($_EXTKEY . '_directory', 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/YellowPages.xml');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_yellowpages2_domain_model_company', 'EXT:yellowpages2/Resources/Private/Language/locallang_csh_tx_yellowpages2_domain_model_company.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_yellowpages2_domain_model_company');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_yellowpages2_domain_model_district', 'EXT:yellowpages2/Resources/Private/Language/locallang_csh_tx_yellowpages2_domain_model_district.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_yellowpages2_domain_model_district');
$extConf = unserialize($_EXTCONF);
$tsConfig = 'ext.yellowpages2.pid = ' . (int)$extConf['poiCollectionPid'];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig($tsConfig);