This repository was archived by the owner on Nov 19, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtca.php
More file actions
91 lines (90 loc) · 3.54 KB
/
tca.php
File metadata and controls
91 lines (90 loc) · 3.54 KB
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
<?php
if (!defined ('TYPO3_MODE')) die ('Access denied.');
$TCA["tx_rgsmoothgallery_image"] = array (
"ctrl" => $TCA["tx_rgsmoothgallery_image"]["ctrl"],
"interface" => array (
"showRecordFieldList" => "sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,description,image"
),
"feInterface" => $TCA["tx_rgsmoothgallery_image"]["feInterface"],
"columns" => array (
'sys_language_uid' => array (
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
'config' => array (
'type' => 'select',
'foreign_table' => 'sys_language',
'foreign_table_where' => 'ORDER BY sys_language.title',
'items' => array(
array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
)
)
),
'l18n_parent' => array (
'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
'config' => array (
'type' => 'select',
'items' => array (
array('', 0),
),
'foreign_table' => 'tx_rgsmoothgallery_image',
'foreign_table_where' => 'AND tx_rgsmoothgallery_image.pid=###CURRENT_PID### AND tx_rgsmoothgallery_image.sys_language_uid IN (-1,0)',
)
),
'l18n_diffsource' => array (
'config' => array (
'type' => 'passthrough'
)
),
'hidden' => array (
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
'config' => array (
'type' => 'check',
'default' => '0'
)
),
"title" => Array (
"exclude" => 1,
"label" => "LLL:EXT:rgsmoothgallery/locallang_db.xml:tx_rgsmoothgallery_image.title",
"config" => Array (
"type" => "input",
"size" => "30",
)
),
"description" => Array (
"exclude" => 1,
"label" => "LLL:EXT:rgsmoothgallery/locallang_db.xml:tx_rgsmoothgallery_image.description",
"config" => Array (
"type" => "text",
"cols" => "30",
"rows" => "2",
)
),
"image" => Array (
"exclude" => 1,
"l10n_mode" => 'mergeIfNotBlank',
"label" => "LLL:EXT:rgsmoothgallery/locallang_db.xml:tx_rgsmoothgallery_image.image",
"config" => Array (
"type" => "group",
"internal_type" => "file",
"allowed" => "gif,png,jpeg,jpg",
"max_size" => 2500,
"uploadfolder" => "uploads/tx_rgsmoothgallery",
"show_thumbs" => 1,
"size" => 1,
"minitems" => 0,
"maxitems" => 1,
)
),
),
"types" => array (
"0" => array("showitem" => "sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, hidden;;1, title;;;;2-2-2, description;;;;3-3-3, image")
),
"palettes" => array (
"1" => array("showitem" => "")
)
);
?>