-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtl_style.php
177 lines (167 loc) · 4.41 KB
/
tl_style.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
<?php
/**
* This file is part of contao-community-alliance/dc-general-example.
*
* (c) 2019 Contao Community Alliance.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* This project is provided in good faith and hope to be usable by anyone.
*
* @package contao-community-alliance/dc-general-example
* @author Sven Baumann <[email protected]>
* @copyright 2019 Contao Community Alliance.
* @license https://github.com/contao-community-alliance/dc-general/blob/master/LICENSE LGPL-3.0-or-later
* @filesource
*/
$GLOBALS['TL_DCA']['tl_style'] = array
(
// Config
'config' => array
(
'dataContainer' => 'General'
),
// Add the data container configuration.
'dca_config' => array
(
// Configure the data provider and all child data provider.
'data_provider' => array
(
// The default data provider, for this data container.
'parent' => array
(
'source' => 'tl_style_sheet'
),
// The child data provider for all children are has related to this and has their child relation.
// This must configure so when you delete this theme are all relations deletes too. (deep delete)
'tl_theme' => array
(
'source' => 'tl_theme'
)
),
// Add the child condition. This will announce the relations.
'childCondition' => array
(
array
(
'from' => 'tl_theme',
'to' => 'tl_style_sheet',
'setOn' => array
(
array
(
'to_field' => 'pid',
'from_field' => 'id',
),
),
'filter' => array
(
array
(
'local' => 'pid',
'remote' => 'id',
'operation' => '=',
),
),
'inverse' => array
(
array
(
'local' => 'pid',
'remote' => 'id',
'operation' => '=',
),
)
),
array
(
'from' => 'tl_style_sheet',
'to' => 'tl_style',
'setOn' => array
(
array
(
'to_field' => 'pid',
'from_field' => 'id',
),
),
'filter' => array
(
array
(
'local' => 'pid',
'remote' => 'id',
'operation' => '=',
),
),
'inverse' => array
(
array
(
'local' => 'pid',
'remote' => 'id',
'operation' => '=',
),
)
)
)
),
// List
'list' => array
(
'sorting' => array
(
// No changes.
),
'global_operations' => array
(
'all' => array
(
// No changes.
)
),
'operations' => array
(
'edit' => array
(
// No changes.
),
'copy' => array
(
// No changes.
),
'cut' => array
(
// No changes.
),
'delete' => array
(
// No changes.
),
'toggle' => array
(
// No changes.
),
'show' => array
(
// No changes.
)
)
),
// Palettes
'palettes' => array
(
// No changes.
),
// Subpalettes
'subpalettes' => array
(
// No changes.
),
// Fields
'fields' => array
(
// No changes.
)
);