This repository has been archived by the owner on Jul 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tca.php
88 lines (87 loc) · 2.56 KB
/
tca.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
<?php
if (!defined ('TYPO3_MODE')) die ('Access denied.');
$TCA['tx_solrfeedimport_feed'] = array(
'ctrl' => $TCA['tx_solrfeedimport_feed']['ctrl'],
'interface' => array(
'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,url,description'
),
'feInterface' => $TCA['tx_solrfeedimport_feed']['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_solrfeedimport_feed',
'foreign_table_where' => 'AND tx_solrfeedimport_feed.pid=###CURRENT_PID### AND tx_solrfeedimport_feed.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'
)
),
'url' => array(
'exclude' => 1,
'label' => 'LLL:EXT:solr_feedimport/locallang_db.xml:tx_solrfeedimport_feed.url',
'config' => array(
'type' => 'input',
'size' => '15',
'max' => '255',
'checkbox' => '',
'eval' => 'trim',
'wizards' => array(
'_PADDING' => 2,
'link' => array(
'type' => 'popup',
'title' => 'Link',
'icon' => 'link_popup.gif',
'script' => 'browse_links.php?mode=wizard',
'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1'
)
)
)
),
'description' => array(
'exclude' => 1,
'label' => 'LLL:EXT:solr_feedimport/locallang_db.xml:tx_solrfeedimport_feed.description',
'config' => array(
'type' => 'input',
'size' => '30',
'eval' => 'required',
)
),
),
'types' => array(
'0' => array('showitem' => 'sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, hidden;;1, url, description')
),
'palettes' => array(
'1' => array('showitem' => '')
)
);
?>