This repository has been archived by the owner on Nov 19, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
182 lines (165 loc) · 6.46 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<?php
if ( !defined( 'TYPO3_MODE' ) )
{
die( 'Access denied.' );
}
/**
*
* INDEX
* Configuration by the extension manager
* Methods for backend workflows
* TypoScript: Include Static Templates
* Plugin general configuration
* Wizard Icons
* Plugin 1 configuration
* Plugin 4 configuration
* Plugin 3 configuration
* Add pagetree icon
*
*/
/**
*
* Configuration by the extension manager
*
*/
$confArr = unserialize( $GLOBALS[ 'TYPO3_CONF_VARS' ][ 'EXT' ][ 'extConf' ][ 'browser' ] );
// Language for labels of static templates and page tsConfig
$llStatic = $confArr[ 'LLstatic' ];
switch ( $llStatic )
{
case($llStatic == 'German'):
$llStatic = 'de';
break;
default:
$llStatic = 'default';
}
// Language for labels of static templates and page tsConfig
/**
*
* Methods for backend workflows
*
*/
require_once(t3lib_extMgm::extPath( $_EXTKEY ) . 'pi1/class.tx_browser_pi1_backend.php');
require_once(t3lib_extMgm::extPath( $_EXTKEY ) . 'pi5/class.tx_browser_pi5_backend.php');
// Enables the Include Static Templates
require_once( PATH_typo3conf . 'ext/browser/Configuration/ExtTables/includeStaticTemplates.php' );
/**
*
* Plugin general configuration
*
*/
t3lib_div::loadTCA( 'tt_content' );
// Plugin general configuration
/**
*
* Wizard Icons
*
*/
if ( TYPO3_MODE == 'BE' )
{
$TBE_MODULES_EXT[ 'xMOD_db_new_content_el' ][ 'addElClasses' ][ 'tx_browser_pi1_backend_wizicon' ] = t3lib_extMgm::extPath( $_EXTKEY ) . 'pi1/class.tx_browser_pi1_backend_wizicon.php';
$TBE_MODULES_EXT[ 'xMOD_db_new_content_el' ][ 'addElClasses' ][ 'tx_browser_pi5_backend_wizicon' ] = t3lib_extMgm::extPath( $_EXTKEY ) . 'pi5/class.tx_browser_pi5_backend_wizicon.php';
$TBE_MODULES_EXT[ 'xMOD_db_new_content_el' ][ 'addElClasses' ][ 'tx_browser_pi4_backend_wizicon' ] = t3lib_extMgm::extPath( $_EXTKEY ) . 'pi4/class.tx_browser_pi4_backend_wizicon.php';
$TBE_MODULES_EXT[ 'xMOD_db_new_content_el' ][ 'addElClasses' ][ 'tx_browser_pi3_backend_wizicon' ] = t3lib_extMgm::extPath( $_EXTKEY ) . 'pi3/class.tx_browser_pi3_backend_wizicon.php';
}
// Wizard Icons
/**
* Include Plugins
*/
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
$_EXTKEY
, 'Pi1'
, 'LLL:EXT:browser/locallang_db.xml:tt_content.list_type_pi1'
, t3lib_extMgm::extRelPath( $_EXTKEY ) . 'ext_icon.gif'
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
$_EXTKEY
, 'Pi6'
, 'LLL:EXT:browser/locallang_db.xml:tt_content.list_type_pi6'
, t3lib_extMgm::extRelPath( $_EXTKEY ) . 'ext_icon.gif'
);
/**
* Include Flexforms
*/
// pi1
$fileName = 'pi1/flexform.xml';
$pluginSignature = str_replace( '_', '', $_EXTKEY ) . '_pi1';
$TCA[ 'tt_content' ][ 'types' ][ 'list' ][ 'subtypes_excludelist' ][ $pluginSignature ] = 'layout,select_key';
$TCA[ 'tt_content' ][ 'types' ][ 'list' ][ 'subtypes_addlist' ][ $pluginSignature ] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
$pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/' . $fileName
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(
array(
'LLL:EXT:browser/locallang_db.xml:tt_content.list_type_pi1'
, $_EXTKEY . '_pi1'
, 'EXT:browser/ext_icon.gif'
)
, 'list_type'
);
// pi6
$fileName = 'pi6/flexform.xml';
$pluginSignature = str_replace( '_', '', $_EXTKEY ) . '_pi6';
$TCA[ 'tt_content' ][ 'types' ][ 'list' ][ 'subtypes_excludelist' ][ $pluginSignature ] = 'layout,select_key,pages,recursive';
$TCA[ 'tt_content' ][ 'types' ][ 'list' ][ 'subtypes_addlist' ][ $pluginSignature ] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
$pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/' . $fileName
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(
array(
'LLL:EXT:browser/locallang_db.xml:tt_content.list_type_pi6'
, $_EXTKEY . '_pi6'
, 'EXT:browser/ext_icon.gif'
)
, 'list_type'
);
/**
*
* Plugin 5 configuration
*
*/
$TCA[ 'tt_content' ][ 'types' ][ 'list' ][ 'subtypes_excludelist' ][ $_EXTKEY . '_pi5' ] = 'layout,select_key';
// Remove the default tt_content fields layout, select_key, pages and recursive.
$TCA[ 'tt_content' ][ 'types' ][ 'list' ][ 'subtypes_addlist' ][ $_EXTKEY . '_pi5' ] = 'pi_flexform';
// Display the field pi_flexform
t3lib_extMgm::addPiFlexFormValue( $_EXTKEY . '_pi5', 'FILE:EXT:' . $_EXTKEY . '/pi5/flexform.xml' );
// Register our file with the flexform structure
t3lib_extMgm::addPlugin( array( 'LLL:EXT:browser/locallang_db.xml:tt_content.list_type_pi5', $_EXTKEY . '_pi5', 'EXT:browser/ext_icon.gif' ), 'list_type' );
// Add the Flexform to the Plugin List
// Plugin 1 configuration
/**
*
* Plugin 4 configuration
*
*/
$TCA[ 'tt_content' ][ 'types' ][ 'list' ][ 'subtypes_excludelist' ][ $_EXTKEY . '_pi4' ] = 'layout,select_key';
// Remove the default tt_content fields layout, select_key, pages and recursive.
$TCA[ 'tt_content' ][ 'types' ][ 'list' ][ 'subtypes_addlist' ][ $_EXTKEY . '_pi4' ] = 'pi_flexform';
// Display the field pi_flexform
t3lib_extMgm::addPiFlexFormValue( $_EXTKEY . '_pi4', 'FILE:EXT:' . $_EXTKEY . '/pi1/flexform.xml' );
// Register our file with the flexform structure
t3lib_extMgm::addPlugin( array( 'LLL:EXT:browser/locallang_db.xml:tt_content.list_type_pi4', $_EXTKEY . '_pi4', 'EXT:browser/ext_icon.gif' ), 'list_type' );
// Add the Flexform to the Plugin List
// Plugin 4 configuration
/**
*
* Plugin 3 configuration
*
*/
$TCA[ 'tt_content' ][ 'types' ][ 'list' ][ 'subtypes_excludelist' ][ $_EXTKEY . '_pi3' ] = 'layout,select_key,pages,recursive';
// Remove the default tt_content fields layout, select_key, pages and recursive.
$TCA[ 'tt_content' ][ 'types' ][ 'list' ][ 'subtypes_addlist' ][ $_EXTKEY . '_pi3' ] = 'pi_flexform';
// Display the field pi_flexform
t3lib_extMgm::addPiFlexFormValue( $_EXTKEY . '_pi3', 'FILE:EXT:' . $_EXTKEY . '/pi3/flexform.xml' );
// Register our file with the flexform structure
t3lib_extMgm::addPlugin( array( 'LLL:EXT:browser/locallang_db.xml:tt_content.list_type_pi3', $_EXTKEY . '_pi3', 'EXT:browser/ext_icon.gif' ), 'list_type' );
// Add the Flexform to the Plugin List
// Plugin 3 configuration
/**
*
* Add pagetree icon
*
*/
$TCA[ 'pages' ][ 'columns' ][ 'module' ][ 'config' ][ 'items' ][] = array( 'Browser', 'browser', t3lib_extMgm::extRelPath( $_EXTKEY ) . 'ext_icon.gif' );
t3lib_SpriteManager::addTcaTypeIcon( 'pages', 'contains-browser', '../typo3conf/ext/browser/ext_icon.gif' );
// Add pagetree icon