-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_tables.php
More file actions
executable file
·39 lines (35 loc) · 1.49 KB
/
ext_tables.php
File metadata and controls
executable file
·39 lines (35 loc) · 1.49 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
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'Couch',
'List',
'Couch'
);
$settings = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class)->get('couch');
$pluginSignature = str_replace('_','','couch') . '_list';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . 'couch' . '/Configuration/FlexForms/flexform_list.xml');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('couch', 'Configuration/TypoScript', 'Couch');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_couch_domain_model_couch', 'EXT:couch/Resources/Private/Language/locallang_csh_tx_couch_domain_model_couch.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_couch_domain_model_couch');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::makeCategorizable(
'couch',
'tx_couch_domain_model_couch',
'categories',
array(
'fieldConfiguration' => array(
'renderType' => 'selectTree',
'renderMode' => 'tree',
'treeConfig' => array(
'parentField' => 'parent',
'rootUid' => $settings['couchCategory'],
'appearance' => array(
'expandAll' => TRUE,
'showHeader' => TRUE,
),
),
)
)
);