forked from FluidTYPO3/fluidpages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.php
60 lines (55 loc) · 1.93 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
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
if (!defined ('TYPO3_MODE')) {
die ('Access denied.');
}
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['fluidpages']['setup'] = unserialize($_EXTCONF);
if (TRUE === (boolean) $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['fluidpages']['setup']['autoRender']) {
Tx_Flux_Core::addGlobalTypoScript('EXT:fluidpages/Configuration/TypoScript');
} else {
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Fluid Pages: PAGE');
}
t3lib_div::loadTCA('pages');
t3lib_extMgm::addTCAcolumns('pages', array(
'tx_fed_page_controller_action' => array (
'exclude' => 1,
'label' => 'LLL:EXT:fluidpages/Resources/Private/Language/locallang.xml:pages.tx_fed_page_controller_action',
'config' => array (
'type' => 'user',
'userFunc' => 'Tx_Fluidpages_Backend_PageLayoutSelector->renderField'
)
),
'tx_fed_page_controller_action_sub' => array (
'exclude' => 1,
'label' => 'LLL:EXT:fluidpages/Resources/Private/Language/locallang.xml:pages.tx_fed_page_controller_action_sub',
'config' => array (
'type' => 'user',
'userFunc' => 'Tx_Fluidpages_Backend_PageLayoutSelector->renderField'
)
),
'tx_fed_page_flexform' => Array (
'exclude' => 1,
'label' => 'LLL:EXT:fluidpages/Resources/Private/Language/locallang.xml:pages.tx_fed_page_flexform',
'config' => array (
'type' => 'flex',
)
),
), 1);
$doktypes = '0,1,4';
$fields = 'tx_fed_page_controller_action,tx_fed_page_controller_action_sub,tx_fed_page_flexform';
$position = 'before:layout';
$additionalDoktypes = trim($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['fluidpages']['setup']['doktypes'], ',');
t3lib_extMgm::addToAllTCAtypes(
'pages',
$fields,
$doktypes,
$position
);
if (FALSE === empty($additionalDoktypes)) {
$fields = '--div--;LLL:EXT:fluidpages/Resources/Private/Language/locallang.xml:pages.tx_fed_page_layoutselect,' . $fields;
t3lib_extMgm::addToAllTCAtypes(
'pages',
$fields,
$additionalDoktypes
);
}
unset($doktypes, $fields, $position, $additionalDoktypes);