View difference between Paste ID: FnHLdKKH and ucE8ZSSH
SHOW: | | - or go back to the newest paste.
1
<?php
2
if (!defined ('TYPO3_MODE')) {
3
	die ('Access denied.');
4
}
5
6
$TCA['tx_consultantprofile_domain_model_consultant'] = array(
7
	'ctrl' => $TCA['tx_consultantprofile_domain_model_consultant']['ctrl'],
8
	'interface' => array(
9
		'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, description, picture, reference1, reference2, reference3, reference4, reference5, categories, user',
10
	),
11
	'types' => array(
12
		'1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, description, picture, reference1, reference2, reference3, reference4, reference5, categories, user,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'),
13
	),
14
	'palettes' => array(
15
		'1' => array('showitem' => ''),
16
	),
17
	'columns' => array(
18
		'sys_language_uid' => array(
19
			'exclude' => 1,
20
			'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
21
			'config' => array(
22
				'type' => 'select',
23
				'foreign_table' => 'sys_language',
24
				'foreign_table_where' => 'ORDER BY sys_language.title',
25
				'items' => array(
26
					array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
27
					array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0)
28
				),
29
			),
30
		),
31
		'l10n_parent' => array(
32
			'displayCond' => 'FIELD:sys_language_uid:>:0',
33
			'exclude' => 1,
34
			'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
35
			'config' => array(
36
				'type' => 'select',
37
				'items' => array(
38
					array('', 0),
39
				),
40
				'foreign_table' => 'tx_consultantprofile_domain_model_consultant',
41
				'foreign_table_where' => 'AND tx_consultantprofile_domain_model_consultant.pid=###CURRENT_PID### AND tx_consultantprofile_domain_model_consultant.sys_language_uid IN (-1,0)',
42
			),
43
		),
44
		'l10n_diffsource' => array(
45
			'config' => array(
46
				'type' => 'passthrough',
47
			),
48
		),
49
		't3ver_label' => array(
50
			'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
51
			'config' => array(
52
				'type' => 'input',
53
				'size' => 30,
54
				'max' => 255,
55
			)
56
		),
57
		'hidden' => array(
58
			'exclude' => 1,
59
			'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
60
			'config' => array(
61
				'type' => 'check',
62
			),
63
		),
64
		'starttime' => array(
65
			'exclude' => 1,
66
			'l10n_mode' => 'mergeIfNotBlank',
67
			'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
68
			'config' => array(
69
				'type' => 'input',
70
				'size' => 13,
71
				'max' => 20,
72
				'eval' => 'datetime',
73
				'checkbox' => 0,
74
				'default' => 0,
75
				'range' => array(
76
					'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
77
				),
78
			),
79
		),
80
		'endtime' => array(
81
			'exclude' => 1,
82
			'l10n_mode' => 'mergeIfNotBlank',
83
			'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
84
			'config' => array(
85
				'type' => 'input',
86
				'size' => 13,
87
				'max' => 20,
88
				'eval' => 'datetime',
89
				'checkbox' => 0,
90
				'default' => 0,
91
				'range' => array(
92
					'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
93
				),
94
			),
95
		),
96
		'description' => array(
97
			'exclude' => 0,
98
			'label' => 'LLL:EXT:consultant_profile/Resources/Private/Language/locallang_db.xlf:tx_consultantprofile_domain_model_consultant.description',
99
			'config' => array(
100
				'type' => 'text',
101
				'cols' => 40,
102
				'rows' => 15,
103
				'eval' => 'trim,required'
104
			),
105
		),
106
		'picture' => array(
107
			'exclude' => 0,
108
			'label' => 'LLL:EXT:consultant_profile/Resources/Private/Language/locallang_db.xlf:tx_consultantprofile_domain_model_consultant.picture',
109
			'config' => array(
110
				'type' => 'group',
111
				'internal_type' => 'file',
112
				'uploadfolder' => 'uploads/tx_consultantprofile',
113
				'show_thumbs' => 1,
114
				'size' => 5,
115
				'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
116
				'disallowed' => '',
117
			),
118
		),
119
		'reference1' => array(
120
			'exclude' => 0,
121
			'label' => 'LLL:EXT:consultant_profile/Resources/Private/Language/locallang_db.xlf:tx_consultantprofile_domain_model_consultant.reference1',
122
			'config' => array(
123
				'type' => 'text',
124
				'cols' => 40,
125
				'rows' => 15,
126
				'eval' => 'trim'
127
			),
128
		),
129
		'reference2' => array(
130
			'exclude' => 0,
131
			'label' => 'LLL:EXT:consultant_profile/Resources/Private/Language/locallang_db.xlf:tx_consultantprofile_domain_model_consultant.reference2',
132
			'config' => array(
133
				'type' => 'text',
134
				'cols' => 40,
135
				'rows' => 15,
136
				'eval' => 'trim'
137
			),
138
		),
139
		'reference3' => array(
140
			'exclude' => 0,
141
			'label' => 'LLL:EXT:consultant_profile/Resources/Private/Language/locallang_db.xlf:tx_consultantprofile_domain_model_consultant.reference3',
142
			'config' => array(
143
				'type' => 'text',
144
				'cols' => 40,
145
				'rows' => 15,
146
				'eval' => 'trim'
147
			),
148
		),
149
		'reference4' => array(
150
			'exclude' => 0,
151
			'label' => 'LLL:EXT:consultant_profile/Resources/Private/Language/locallang_db.xlf:tx_consultantprofile_domain_model_consultant.reference4',
152
			'config' => array(
153
				'type' => 'text',
154
				'cols' => 40,
155
				'rows' => 15,
156
				'eval' => 'trim'
157
			),
158
		),
159
		'reference5' => array(
160
			'exclude' => 0,
161
			'label' => 'LLL:EXT:consultant_profile/Resources/Private/Language/locallang_db.xlf:tx_consultantprofile_domain_model_consultant.reference5',
162
			'config' => array(
163
				'type' => 'text',
164
				'cols' => 40,
165
				'rows' => 15,
166
				'eval' => 'trim'
167
			),
168
		),
169
		'categories' => array(
170
			'exclude' => 0,
171
			'label' => 'LLL:EXT:consultant_profile/Resources/Private/Language/locallang_db.xlf:tx_consultantprofile_domain_model_consultant.categories',
172
			'config' => array(
173
				'type' => 'select',
174
				'foreign_table' => 'tx_consultantprofile_domain_model_consultantcategory',
175
				'MM' => 'tx_consultantprofile_consultant_consultantcategory_mm',
176
				'size' => 10,
177
				'autoSizeMax' => 30,
178
				'maxitems' => 9999,
179
				'multiple' => 0,
180
				'wizards' => array(
181
					'_PADDING' => 1,
182
					'_VERTICAL' => 1,
183
					'edit' => array(
184
						'type' => 'popup',
185
						'title' => 'Edit',
186
						'script' => 'wizard_edit.php',
187
						'icon' => 'edit2.gif',
188
						'popup_onlyOpenIfSelected' => 1,
189
						'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
190
						),
191
					'add' => Array(
192
						'type' => 'script',
193
						'title' => 'Create new',
194
						'icon' => 'add.gif',
195
						'params' => array(
196
							'table' => 'tx_consultantprofile_domain_model_consultantcategory',
197
							'pid' => '###CURRENT_PID###',
198
							'setValue' => 'prepend'
199
							),
200
						'script' => 'wizard_add.php',
201
					),
202
				),
203
			),
204
		),
205
		'user' => array(
206
			'exclude' => 0,
207-
			'label' => 'LLL:EXT:test_relation/Resources/Private/Language/locallang_db.xlf:tx_testrelation_domain_model_testrelation.user',
207+
			'label' => 'LLL:EXT:consultant_profile/Resources/Private/Language/locallang_db.xlf:tx_consultantprofile_domain_model_consultant.user',
208
			'config' => array(
209
				'type' => 'inline',
210
				'foreign_table' => 'fe_users',
211
				'minitems' => 0,
212
				'maxitems' => 1,
213
				'appearance' => array(
214
					'collapseAll' => 0,
215
					'levelLinksPosition' => 'top',
216
					'showSynchronizationLink' => 1,
217
					'showPossibleLocalizationRecords' => 1,
218
					'showAllLocalizationLink' => 1
219
				),
220
			),
221
		),
222
	),
223
);
224
225
?>