forked from FluidTYPO3/flux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.php
executable file
·47 lines (42 loc) · 1.53 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['flux']['setup'] = unserialize($_EXTCONF);
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'API', 'Flux API (do not use on pages)');
t3lib_div::loadTCA('tt_content');
t3lib_extMgm::addTCAcolumns('tt_content', array(
'tx_flux_column' => array (
'exclude' => 0,
'label' => 'LLL:EXT:flux/Resources/Private/Language/locallang.xml:tt_content.tx_flux_column',
'config' => array (
'type' => 'select',
'default' => '',
'itemsProcFunc' => 'EXT:flux/Classes/Backend/AreaListItemsProcessor.php:Tx_Flux_Backend_AreaListItemsProcessor->itemsProcFunc'
)
),
'tx_flux_parent' => array (
'exclude' => 0,
'label' => 'LLL:EXT:flux/Resources/Private/Language/locallang.xml:tt_content.tx_flux_parent',
'config' => array (
'type' => 'select',
'foreign_table' => 'tt_content',
'foreign_table_where' => "AND tt_content.CType = 'fed_fce' AND tt_content.pid = '###CURRENT_PID###'",
'default' => 0,
'size' => 1,
'maxitems' => 1,
)
),
'tx_flux_children' => array (
'exclude' => 0,
'config' => array (
'type' => 'inline',
'foreign_table' => 'tt_content',
'foreign_field' => 'tx_flux_parent',
'foreign_sortby' => 'sorting',
)
),
)
);
$TCA['tt_content']['columns']['colPos']['config']['items'][] = array('LLL:EXT:flux/locallang.xml:tt_content.tx_flux_container', '-42');
Tx_Flux_Core::registerConfigurationProvider('Tx_Flux_Provider_Configuration_ContentObjectConfigurationProvider');