[BUGFIX] Fix import of type group internal_type file_reference
[Packages/TYPO3.CMS.git] / typo3 / sysext / impexp / Tests / Functional / Fixtures / Extensions / impexp_group_files / Configuration / TCA / tx_impexpgroupfiles_item.php
1 <?php
2 if (!defined ('TYPO3_MODE')) {
3 die ('Access denied.');
4 }
5
6 return array(
7 'ctrl' => array(
8 'title' => 'LLL:EXT:impexp_group_files/Resources/Private/Language/locallang_db.xlf:tx_impexpgroupfiles_item',
9 'label' => 'title',
10 'tstamp' => 'tstamp',
11 'crdate' => 'crdate',
12 'cruser_id' => 'cruser_id',
13 'dividers2tabs' => TRUE,
14 'sortby' => 'sorting',
15
16 'versioningWS' => 2,
17 'versioning_followPages' => TRUE,
18
19 'origUid' => 't3_origuid',
20
21 'delete' => 'deleted',
22 'enablecolumns' => array(
23 'disabled' => 'hidden',
24 'starttime' => 'starttime',
25 'endtime' => 'endtime',
26 ),
27 'searchFields' => 'price,currency,symbol,',
28 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('impexp_group_files') . 'Resources/Public/Icons/icon_tx_impexpgroupfiles_item.gif'
29 ),
30 'interface' => array(
31 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, images, image_references',
32 ),
33 'types' => array(
34 '1' => array('showitem' => 'hidden, title, images, image_references,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'),
35 ),
36 'palettes' => array(
37 '1' => array('showitem' => ''),
38 ),
39 'columns' => array(
40
41 't3ver_label' => array(
42 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
43 'config' => array(
44 'type' => 'input',
45 'size' => 30,
46 'max' => 255,
47 )
48 ),
49
50 'hidden' => array(
51 'exclude' => 1,
52 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
53 'config' => array(
54 'type' => 'check',
55 ),
56 ),
57 'starttime' => array(
58 'exclude' => 1,
59 'l10n_mode' => 'mergeIfNotBlank',
60 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
61 'config' => array(
62 'type' => 'input',
63 'size' => 13,
64 'max' => 20,
65 'eval' => 'datetime',
66 'checkbox' => 0,
67 'default' => 0,
68 'range' => array(
69 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
70 ),
71 ),
72 ),
73 'endtime' => array(
74 'exclude' => 1,
75 'l10n_mode' => 'mergeIfNotBlank',
76 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
77 'config' => array(
78 'type' => 'input',
79 'size' => 13,
80 'max' => 20,
81 'eval' => 'datetime',
82 'checkbox' => 0,
83 'default' => 0,
84 'range' => array(
85 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
86 ),
87 ),
88 ),
89 'title' => array(
90 'label' => 'LLL:EXT:impexp_group_files/Resources/Private/Language/locallang_db.xml:tx_impexpgroupfiles_item_title',
91 'config' => array(
92 'type' => 'input',
93 'size' => 30,
94 'max' => 255,
95 'eval' => 'required'
96 )
97 ),
98 'images' => array(
99 'exclude' => 0,
100 'label' => 'LLL:EXT:impexp_group_files/Resources/Private/Language/locallang_db.xml:tx_impexpgroupfiles_item_images',
101 'config' => array(
102 'type' => 'group',
103 'internal_type' => 'file',
104 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
105 'disallowed' => 'php',
106 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
107 'uploadfolder' => 'uploads/tx_impexpgroupfiles',
108 'size' => 5,
109 'maxitems' => 5,
110 'show_thumbs' => 1,
111 ),
112 ),
113 'image_references' => array(
114 'exclude' => 0,
115 'label' => 'LLL:EXT:impexp_group_files/Resources/Private/Language/locallang_db.xml:tx_impexpgroupfiles_item_image_references',
116 'config' => array(
117 'type' => 'group',
118 'internal_type' => 'file_reference',
119 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
120 'disallowed' => 'php',
121 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
122 'size' => 5,
123 'maxitems' => 5,
124 'show_thumbs' => 1,
125 ),
126 ),
127 ),
128 );