‪TYPO3CMS  11.5
RenderPreviewExportPageAndRecordsWithSoftRefs.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
16 return [
17  'update' => false,
18  'showDiff' => false,
19  'insidePageTree' =>
20  [
21  0 =>
22  [
23  'ref' => 'pages:0',
24  'type' => 'record',
25  'msg' => '',
26  'preCode' => '<span title="pages:0"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default">
27  <span class="icon-markup">
28 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg>
29  </span>
30 
31 </span></span>',
32  'title' => '',
33  'active' => 'active',
34  'controls' => '
35  <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][pages:0]" id="checkExcludepages:0" value="1" />
36  <label for="checkExcludepages:0">Exclude</label>',
37  'message' => '',
38  ],
39  1 =>
40  [
41  'ref' => 'be_users:1',
42  'type' => 'record',
43  'msg' => '',
44  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;<span title="be_users:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-user-admin" data-identifier="status-user-admin">
45  <span class="icon-markup">
46 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/status.svg#status-user-admin" /></svg>
47  </span>
48 
49 </span></span>',
50  'title' => 'admin',
51  'active' => 'active',
52  'controls' => '
53  <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][be_users:1]" id="checkExcludebe_users:1" value="1" />
54  <label for="checkExcludebe_users:1">Exclude</label>',
55  'message' => '',
56  ],
57  2 =>
58  [
59  'ref' => 'sys_file:1',
60  'type' => 'record',
61  'msg' => '',
62  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;<span title="sys_file:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image">
63  <span class="icon-markup">
64 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-media-image" /></svg>
65  </span>
66 
67 </span></span>',
68  'title' => 'typo3_image2.jpg',
69  'active' => 'active',
70  'controls' => '
71  <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][sys_file:1]" id="checkExcludesys_file:1" value="1" />
72  <label for="checkExcludesys_file:1">Exclude</label>',
73  'message' => '',
74  ],
75  3 =>
76  [
77  'ref' => 'sys_file_storage:1',
78  'type' => 'rel',
79  'msg' => '',
80  'title' => '<span title="/">fileadmin</span>',
81  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">
82  <span class="icon-markup">
83 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>
84  </span>
85 
86 </span></span>',
87  'controls' => '',
88  'message' => '',
89  ],
90  4 =>
91  [
92  'ref' => 'sys_file:2',
93  'type' => 'record',
94  'msg' => '',
95  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;<span title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image">
96  <span class="icon-markup">
97 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-media-image" /></svg>
98  </span>
99 
100 </span></span>',
101  'title' => 'typo3_image3.jpg',
102  'active' => 'active',
103  'controls' => '
104  <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][sys_file:2]" id="checkExcludesys_file:2" value="1" />
105  <label for="checkExcludesys_file:2">Exclude</label>',
106  'message' => '',
107  ],
108  5 =>
109  [
110  'ref' => 'sys_file_storage:1',
111  'type' => 'rel',
112  'msg' => '',
113  'title' => '<span title="/">fileadmin</span>',
114  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">
115  <span class="icon-markup">
116 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>
117  </span>
118 
119 </span></span>',
120  'controls' => '',
121  'message' => '',
122  ],
123  6 =>
124  [
125  'ref' => 'sys_file:3',
126  'type' => 'record',
127  'msg' => '',
128  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;<span title="sys_file:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image">
129  <span class="icon-markup">
130 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-media-image" /></svg>
131  </span>
132 
133 </span></span>',
134  'title' => 'typo3_image5.jpg',
135  'active' => 'active',
136  'controls' => '
137  <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][sys_file:3]" id="checkExcludesys_file:3" value="1" />
138  <label for="checkExcludesys_file:3">Exclude</label>',
139  'message' => '',
140  ],
141  7 =>
142  [
143  'ref' => 'sys_file_storage:1',
144  'type' => 'rel',
145  'msg' => '',
146  'title' => '<span title="/">fileadmin</span>',
147  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">
148  <span class="icon-markup">
149 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>
150  </span>
151 
152 </span></span>',
153  'controls' => '',
154  'message' => '',
155  ],
156  8 =>
157  [
158  'ref' => 'sys_file_storage:1',
159  'type' => 'record',
160  'msg' => '',
161  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;<span title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-sys_file_storage" data-identifier="mimetypes-x-sys_file_storage">
162  <span class="icon-markup">
163 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-sys_file_storage" /></svg>
164  </span>
165 
166 </span></span>',
167  'title' => 'fileadmin',
168  'active' => 'active',
169  'controls' => '
170  <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][sys_file_storage:1]" id="checkExcludesys_file_storage:1" value="1" />
171  <label for="checkExcludesys_file_storage:1">Exclude</label>',
172  'message' => '',
173  ],
174  9 =>
175  [
176  'ref' => 'pages:1',
177  'type' => 'record',
178  'msg' => '',
179  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;<span title="pages:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default">
180  <span class="icon-markup">
181 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg>
182  </span>
183 
184 </span></span>',
185  'title' => '<a href="#" >Root</a>',
186  'active' => 'active',
187  'controls' => '
188  <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][pages:1]" id="checkExcludepages:1" value="1" />
189  <label for="checkExcludepages:1">Exclude</label>',
190  'message' => '',
191  ],
192  10 =>
193  [
194  'ref' => 'tt_content:1',
195  'type' => 'record',
196  'msg' => '',
197  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span title="tt_content:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text">
198  <span class="icon-markup">
199 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text" /></svg>
200  </span>
201 
202 </span></span>',
203  'title' => 'Test content',
204  'active' => 'active',
205  'controls' => '
206  <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][tt_content:1]" id="checkExcludett_content:1" value="1" />
207  <label for="checkExcludett_content:1">Exclude</label>',
208  'message' => '',
209  ],
210  11 =>
211  [
212  'ref' => 'SOFTREF',
213  'type' => 'softref',
214  'msg' => '',
215  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft">
216  <span class="icon-markup">
217 <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" />
218  </span>
219 
220 </span></span>',
221  'title' => '<em>header_link, "typolink"</em> : <span title="file:1">file:1</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Record <strong>sys_file:1</strong>',
222  '_softRefInfo' =>
223  [
224  'field' => 'header_link',
225  'spKey' => 'typolink',
226  'matchString' => 'file:1',
227  'subst' =>
228  [
229  'type' => 'db',
230  'recordRef' => 'sys_file:1',
231  'tokenID' => '2487ce518ed56d22f20f259928ff43f1',
232  'tokenValue' => 'file:1',
233  ],
234  ],
235  'controls' => '<select name="tx_impexp[softrefCfg][2487ce518ed56d22f20f259928ff43f1][mode]"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select><br/>',
236  'message' => '',
237  ],
238  12 =>
239  [
240  'ref' => 'sys_file:1',
241  'type' => 'rel',
242  'msg' => '',
243  'title' => '<span title="/">typo3_image2.jpg</span>',
244  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="" title="sys_file:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">
245  <span class="icon-markup">
246 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>
247  </span>
248 
249 </span></span>',
250  'controls' => '',
251  'message' => '',
252  ],
253  13 =>
254  [
255  'ref' => 'sys_file_storage:1',
256  'type' => 'rel',
257  'msg' => '',
258  'title' => '<span title="/">fileadmin</span>',
259  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">
260  <span class="icon-markup">
261 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>
262  </span>
263 
264 </span></span>',
265  'controls' => '',
266  'message' => '',
267  ],
268  14 =>
269  [
270  'ref' => 'pages:2',
271  'type' => 'record',
272  'msg' => '',
273  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span title="pages:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default">
274  <span class="icon-markup">
275 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg>
276  </span>
277 
278 </span></span>',
279  'title' => '<a href="#" >Dummy 1-2</a>',
280  'active' => 'active',
281  'controls' => '
282  <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][pages:2]" id="checkExcludepages:2" value="1" />
283  <label for="checkExcludepages:2">Exclude</label>',
284  'message' => '',
285  ],
286  15 =>
287  [
288  'ref' => 'pages:3',
289  'type' => 'record',
290  'msg' => '',
291  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span title="pages:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default">
292  <span class="icon-markup">
293 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg>
294  </span>
295  <span class="icon-overlay icon-overlay-hidden"><svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/overlay.svg#overlay-hidden" /></svg></span>
296 </span></span>',
297  'title' => '<a href="#" >Dummy 1-3</a>',
298  'active' => 'hidden',
299  'controls' => '
300  <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][pages:3]" id="checkExcludepages:3" value="1" />
301  <label for="checkExcludepages:3">Exclude</label>',
302  'message' => '',
303  ],
304  ],
305  'outsidePageTree' =>
306  [
307  ],
308 ];