-
Notifications
You must be signed in to change notification settings - Fork 1
/
ext_tables.php
122 lines (95 loc) · 3.43 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
### Custom Content Elements
/**
* Cookie Warning
*/
$TCA['tt_content']['types']['dsgsitepackage_cookies']['showitem'] = "
--palette--;LLL:EXT:cms/locallang_ttc.xml:palette.general;general,
bodytext;Warning Text,
header_link;Link,
header;More Link Text,
rowDescription;Button Text,
--div--;LLL:EXT:cms/locallang_ttc.xml:tabs.appearance,
--palette--;LLL:EXT:cms/locallang_ttc.xml:palette.frames;frames,
--div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
--palette--;LLL:EXT:cms/locallang_ttc.xml:palette.visibility;visibility,
--palette--;LLL:EXT:cms/locallang_ttc.xml:palette.access;access,
";
$TCA['tt_content']['types']['dsgsitepackage_cookies']['columnsOverrides'] = [
'header_link' => [
'config' => [
'wizards' => [
'link' => [
'params' => [
'blindLinkOptions' => 'url, mail, spec, folder, file'
]
]
]
]
],
'rowDescription' => [
'config' => ['rows' => 1]
]
];
/**
* To Top Link
*/
$TCA['tt_content']['types']['dsgsitepackage_totop']['showitem'] = "
--palette--;LLL:EXT:cms/locallang_ttc.xml:palette.general;general,
--div--;LLL:EXT:cms/locallang_ttc.xml:tabs.appearance,
--palette--;LLL:EXT:cms/locallang_ttc.xml:palette.frames;frames,
--div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
--palette--;LLL:EXT:cms/locallang_ttc.xml:palette.visibility;visibility,
--palette--;LLL:EXT:cms/locallang_ttc.xml:palette.access;access,
";
/** *************
* Add Content Elements to List
*/
$backupCTypeItems = $GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items'];
$GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items'] = array(
array(
'Custom Elements',
'--div--'
),
array(
'Cookie Warning',
'dsgsitepackage_cookies',
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'ext_icon.gif'
),
array(
'Link To Top',
'dsgsitepackage_totop',
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'ext_icon.gif'
),
);
foreach ($backupCTypeItems as $key => $value) {
$GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items'][] = $value;
}
unset($key);
unset($value);
unset($backupCTypeItems);
### extend TCA for file metadata
$tempColumns = Array (
"quell" => Array (
'exclude' => 1,
'label' => 'Quellnachweis',
'config' => array(
'type' => 'input',
'size' => 30,
'eval' => 'trim,required'
),
),
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns("sys_file_metadata",$tempColumns,1);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('sys_file_metadata', 'quell','',
'after:alternative');
### include static template
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Flexbox provider extension of Röder Webdesign Berlin');
### entfernen "Translate to ..." Nachricht beim kopieren ovn CE in andere Sprachen
$TCA['tt_content']['columns']['header']['l10n_mode'] = '';
$TCA['tt_content']['columns']['bodytext']['l10n_mode'] = '';
### Section Index defaults now to zero. helpfull when menurendering based on content elements with sectionindex 1
$GLOBALS['TCA']['tt_content']['columns']['sectionIndex']['config']['default'] = 0;