‪TYPO3CMS  11.5
RenderPreviewImportPageAndRecords.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:1',
24  'type' => 'record',
25  'msg' => '',
26  'preCode' => '<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">
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' => 'Root',
33  'active' => 'active',
34  'controls' => '',
35  'message' => '',
36  ],
37  1 =>
38  [
39  'ref' => 'tt_content:1',
40  'type' => 'record',
41  'msg' => '',
42  'preCode' => '&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">
43  <span class="icon-markup">
44 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text" /></svg>
45  </span>
46 
47 </span></span>',
48  'title' => 'Test content',
49  'active' => 'active',
50  'controls' => '',
51  'message' => '',
52  ],
53  2 =>
54  [
55  'ref' => 'SOFTREF',
56  'type' => 'softref',
57  'msg' => '',
58  'preCode' => '&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">
59  <span class="icon-markup">
60 <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" />
61  </span>
62 
63 </span></span>',
64  'title' => '<em>header_link, "typolink"</em> : <span title="file:2">file:2</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Record <strong>sys_file:2</strong>',
65  '_softRefInfo' =>
66  [
67  'field' => 'header_link',
68  'spKey' => 'typolink',
69  'matchString' => 'file:2',
70  'subst' =>
71  [
72  'type' => 'db',
73  'recordRef' => 'sys_file:2',
74  'tokenID' => '2487ce518ed56d22f20f259928ff43f1',
75  'tokenValue' => 'file:2',
76  ],
77  ],
78  'controls' => '',
79  'message' => '',
80  ],
81  3 =>
82  [
83  'ref' => 'sys_file:2',
84  'type' => 'rel',
85  'msg' => '',
86  'title' => '<span title="/">typo3_image3.jpg</span>',
87  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">
88  <span class="icon-markup">
89 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>
90  </span>
91 
92 </span></span>',
93  'controls' => '',
94  'message' => '',
95  ],
96  4 =>
97  [
98  'ref' => 'sys_file_storage:1',
99  'type' => 'rel',
100  'msg' => 'LOST RELATION (Path: /)',
101  'title' => '<span title="/">sys_file_storage:1</span>',
102  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="text-danger" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning">
103  <span class="icon-markup">
104 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-exclamation-triangle" /></svg>
105  </span>
106 
107 </span></span>',
108  'controls' => '',
109  'message' => '<span class="text-danger">LOST RELATION (Path: /)</span>',
110  ],
111  5 =>
112  [
113  'ref' => 'tt_content:2',
114  'type' => 'record',
115  'msg' => '',
116  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;<span title="tt_content:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text">
117  <span class="icon-markup">
118 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text" /></svg>
119  </span>
120 
121 </span></span>',
122  'title' => 'Test content 2',
123  'active' => 'active',
124  'controls' => '',
125  'message' => '',
126  ],
127  6 =>
128  [
129  'ref' => 'SOFTREF',
130  'type' => 'softref',
131  'msg' => '',
132  'preCode' => '&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">
133  <span class="icon-markup">
134 <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" />
135  </span>
136 
137 </span></span>',
138  'title' => '<em>header_link, "typolink"</em> : <span title="file:4">file:4</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Record <strong>sys_file:4</strong>',
139  '_softRefInfo' =>
140  [
141  'field' => 'header_link',
142  'spKey' => 'typolink',
143  'matchString' => 'file:4',
144  'subst' =>
145  [
146  'type' => 'db',
147  'recordRef' => 'sys_file:4',
148  'tokenID' => '81b8b33df54ef433f1cbc7c3e513e6c4',
149  'tokenValue' => 'file:4',
150  ],
151  ],
152  'controls' => '',
153  'message' => '',
154  ],
155  7 =>
156  [
157  'ref' => 'sys_file:4',
158  'type' => 'rel',
159  'msg' => '',
160  'title' => '<span title="/">Empty.html</span>',
161  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="" title="sys_file:4"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">
162  <span class="icon-markup">
163 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>
164  </span>
165 
166 </span></span>',
167  'controls' => '',
168  'message' => '',
169  ],
170  8 =>
171  [
172  'ref' => 'pages:2',
173  'type' => 'record',
174  'msg' => '',
175  'preCode' => '&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">
176  <span class="icon-markup">
177 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg>
178  </span>
179 
180 </span></span>',
181  'title' => 'Dummy 1-2',
182  'active' => 'active',
183  'controls' => '',
184  'message' => '',
185  ],
186  ],
187  'outsidePageTree' =>
188  [
189  0 =>
190  [
191  'ref' => 'sys_file:2',
192  'type' => 'record',
193  'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ',
194  'preCode' => '<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">
195  <span class="icon-markup">
196 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-media-image" /></svg>
197  </span>
198 
199 </span></span>',
200  'title' => 'typo3_image3.jpg',
201  'active' => 'active',
202  'controls' => '',
203  'message' => '<span class="text-danger">TABLE &quot;sys_file&quot; will be inserted on ROOT LEVEL! </span>',
204  ],
205  1 =>
206  [
207  'ref' => 'sys_file_storage:1',
208  'type' => 'rel',
209  'msg' => 'LOST RELATION (Path: /)',
210  'title' => '<span title="/">sys_file_storage:1</span>',
211  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;<span class="text-danger" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning">
212  <span class="icon-markup">
213 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-exclamation-triangle" /></svg>
214  </span>
215 
216 </span></span>',
217  'controls' => '',
218  'message' => '<span class="text-danger">LOST RELATION (Path: /)</span>',
219  ],
220  2 =>
221  [
222  'ref' => 'sys_file:4',
223  'type' => 'record',
224  'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ',
225  'preCode' => '<span title="sys_file:4"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-text-text" data-identifier="mimetypes-text-text">
226  <span class="icon-markup">
227 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-text-text" /></svg>
228  </span>
229 
230 </span></span>',
231  'title' => 'Empty.html',
232  'active' => 'active',
233  'controls' => '',
234  'message' => '<span class="text-danger">TABLE &quot;sys_file&quot; will be inserted on ROOT LEVEL! </span>',
235  ],
236  ],
237 ];