d7a4017f59e27836bcd4d89909669a563e3ce276
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Functional / Fixtures / Frontend / JsonRenderer.ts
1 config {
2 no_cache = 1
3 debug = 0
4 xhtml_cleaning = 0
5 admPanel = 0
6 disableAllHeaderCode = 1
7 sendCacheHeaders = 0
8 sys_language_uid = 0
9 sys_language_mode = ignore
10 sys_language_overlay = 1
11 additionalHeaders = Content-Type: application/json; charset=utf-8
12
13 watcher {
14 tableFields {
15 pages = uid,_ORIG_uid,pid,sorting,title
16 sys_category = uid,_ORIG_uid,_LOCALIZED_UID,pid,sys_language_uid,title,parent,items,sys_language_uid
17 sys_file = uid,_ORIG_uid,_LOCALIZED_UID,pid,title,sys_language_uid
18 sys_file_reference = uid,_ORIG_uid,_LOCALIZED_UID,title,description,alternative,link,downloadname,missing,identifier,file,pid,sys_language_uid,title,parent,items,sys_language_uid,uid_local,uid_foreign,tablenames,fieldname,table_local
19 tt_content = uid,_ORIG_uid,_LOCALIZED_UID,pid,sorting,sys_language_uid,header,categories,tx_irretutorial_1nff_hotels
20 tx_irretutorial_1nff_hotel = uid,_ORIG_uid,_LOCALIZED_UID,pid,sorting,sys_language_uid,title,offers
21 tx_irretutorial_1nff_offer = uid,_ORIG_uid,_LOCALIZED_UID,pid,sorting,sys_language_uid,title,prices
22 tx_irretutorial_1nff_price = uid,_ORIG_uid,_LOCALIZED_UID,pid,sorting,sys_language_uid,title,price
23 tx_irretutorial_1ncsv_hotel = uid,_ORIG_uid,_LOCALIZED_UID,pid,sorting,sys_language_uid,title,offers
24 tx_irretutorial_1ncsv_offer = uid,_ORIG_uid,_LOCALIZED_UID,pid,sorting,sys_language_uid,title,prices
25 tx_irretutorial_1ncsv_price = uid,_ORIG_uid,_LOCALIZED_UID,pid,sorting,sys_language_uid,title,price
26 tx_testdatahandler_element = uid,_ORIG_uid,_LOCALIZED_UID,pid,sorting,sys_language_uid,title
27 }
28 }
29 }
30
31 lib.watcherDataObject = COA
32 lib.watcherDataObject {
33 1 = LOAD_REGISTER
34 1.watcher.dataWrap = |
35 2 = USER
36 2.userFunc = TYPO3\CMS\Core\Tests\Functional\Framework\Frontend\Collector->addRecordData
37 99 = RESTORE_REGISTER
38 }
39
40 lib.watcherFileObject = COA
41 lib.watcherFileObject {
42 1 = LOAD_REGISTER
43 1.watcher.dataWrap = |
44 2 = USER
45 2.userFunc = TYPO3\CMS\Core\Tests\Functional\Framework\Frontend\Collector->addFileData
46 99 = RESTORE_REGISTER
47 }
48
49 page = PAGE
50 page {
51 10 = COA
52 10 {
53 1 = LOAD_REGISTER
54 1.watcher.dataWrap = pages:{field:uid}
55 2 = USER
56 2.userFunc = TYPO3\CMS\Core\Tests\Functional\Framework\Frontend\Collector->addRecordData
57 10 = CONTENT
58 10 {
59 stdWrap.required = 1
60 table = pages
61 select {
62 orderBy = sorting
63 pidInList = this
64 }
65 renderObj < lib.watcherDataObject
66 renderObj.1.watcher.dataWrap = {register:watcher}|.__pages/pages:{field:uid}
67 }
68 20 = CONTENT
69 20 {
70 table = tt_content
71 select {
72 orderBy = sorting
73 where = colPos=0
74 languageField = sys_language_uid
75 }
76 renderObj < lib.watcherDataObject
77 renderObj.1.watcher.dataWrap = {register:watcher}|.__contents/tt_content:{field:uid}
78 renderObj {
79 10 = CONTENT
80 10 {
81 if.isTrue.field = categories
82 table = sys_category
83 select {
84 pidInList = root,-1
85 selectFields = sys_category.*
86 join = sys_category_record_mm ON sys_category_record_mm.uid_local = sys_category.uid
87 where.data = field:_ORIG_uid // field:uid
88 where.intval = 1
89 where.wrap = sys_category_record_mm.uid_foreign=|
90 orderBy = sys_category_record_mm.sorting_foreign
91 languageField = sys_category.sys_language_uid
92 }
93 renderObj < lib.watcherDataObject
94 renderObj.1.watcher.dataWrap = {register:watcher}|.categories/sys_category:{field:uid}
95 }
96 20 = CONTENT
97 20 {
98 if.isTrue.field = tx_irretutorial_1nff_hotels
99 table = tx_irretutorial_1nff_hotel
100 select {
101 orderBy = sorting
102 where.field = uid
103 where.intval = 1
104 where.wrap = parenttable="tt_content" AND parentid=|
105 languageField = sys_language_uid
106 }
107 renderObj < lib.watcherDataObject
108 renderObj.1.watcher.dataWrap = {register:watcher}|.tx_irretutorial_1nff_hotels/tx_irretutorial_1nff_hotel:{field:uid}
109 renderObj {
110 10 = CONTENT
111 10 {
112 if.isTrue.field = offers
113 table = tx_irretutorial_1nff_offer
114 select {
115 orderBy = sorting
116 where.field = uid
117 where.intval = 1
118 where.wrap = parenttable="tx_irretutorial_1nff_hotel" AND parentid=|
119 languageField = sys_language_uid
120 }
121 renderObj < lib.watcherDataObject
122 renderObj.1.watcher.dataWrap = {register:watcher}|.offers/tx_irretutorial_1nff_offer:{field:uid}
123 renderObj {
124 10 = CONTENT
125 10 {
126 if.isTrue.field = prices
127 table = tx_irretutorial_1nff_price
128 select {
129 orderBy = sorting
130 where.field = uid
131 where.intval = 1
132 where.wrap = parenttable="tx_irretutorial_1nff_offer" AND parentid=|
133 languageField = sys_language_uid
134 }
135 renderObj < lib.watcherDataObject
136 renderObj.1.watcher.dataWrap = {register:watcher}|.prices/tx_irretutorial_1nff_price:{field:uid}
137 }
138 }
139 }
140 }
141 }
142 30 = CONTENT
143 30 {
144 if.isTrue.field = tx_irretutorial_1ncsv_hotels
145 table = tx_irretutorial_1ncsv_hotel
146 select {
147 uidInList.data = field:tx_irretutorial_1ncsv_hotels
148 orderBy = sorting
149 # not including sys_language_uid lookup
150 # languageField = sys_language_uid
151 }
152 renderObj < lib.watcherDataObject
153 renderObj.1.watcher.dataWrap = {register:watcher}|.tx_irretutorial_1ncsv_hotels/tx_irretutorial_1ncsv_hotel:{field:uid}
154 renderObj {
155 10 = CONTENT
156 10 {
157 if.isTrue.field = offers
158 table = tx_irretutorial_1ncsv_offer
159 select {
160 uidInList.data = field:offers
161 orderBy = sorting
162 # not including sys_language_uid lookup
163 # languageField = sys_language_uid
164 }
165 renderObj < lib.watcherDataObject
166 renderObj.1.watcher.dataWrap = {register:watcher}|.offers/tx_irretutorial_1ncsv_offer:{field:uid}
167 renderObj {
168 10 = CONTENT
169 10 {
170 if.isTrue.field = prices
171 table = tx_irretutorial_1ncsv_price
172 select {
173 uidInList.data = field:prices
174 orderBy = sorting
175 # not including sys_language_uid lookup
176 # languageField = sys_language_uid
177 }
178 renderObj < lib.watcherDataObject
179 renderObj.1.watcher.dataWrap = {register:watcher}|.prices/tx_irretutorial_1ncsv_price:{field:uid}
180 }
181 }
182 }
183 }
184 }
185 40 = FILES
186 40 {
187 if.isTrue.field = image
188 references {
189 fieldName = image
190 }
191 renderObj < lib.watcherFileObject
192 renderObj.1.watcher.dataWrap = {register:watcher}|.image/
193 }
194 50 = CONTENT
195 50 {
196 if.isTrue.field = tx_testdatahandler_select
197 table = tx_testdatahandler_element
198 select {
199 uidInList.data = field:tx_testdatahandler_select
200 pidInList = 0
201 orderBy = sorting
202 # not including sys_language_uid lookup
203 # languageField = sys_language_uid
204 }
205 renderObj < lib.watcherDataObject
206 renderObj.1.watcher.dataWrap = {register:watcher}|.tx_testdatahandler_select/tx_testdatahandler_element:{field:uid}
207 }
208 60 = CONTENT
209 60 {
210 if.isTrue.field = tx_testdatahandler_group
211 table = tx_testdatahandler_element
212 select {
213 uidInList.data = field:tx_testdatahandler_group
214 pidInList = 0
215 orderBy = sorting
216 # not including sys_language_uid lookup
217 # languageField = sys_language_uid
218 }
219 renderObj < lib.watcherDataObject
220 renderObj.1.watcher.dataWrap = {register:watcher}|.tx_testdatahandler_group/tx_testdatahandler_element:{field:uid}
221 }
222 }
223 }
224 stdWrap.postUserFunc = TYPO3\CMS\Core\Tests\Functional\Framework\Frontend\Collector->attachSection
225 stdWrap.postUserFunc.as = Default
226 }
227 stdWrap.postUserFunc = TYPO3\CMS\Core\Tests\Functional\Framework\Frontend\Renderer->renderSections
228 }
229
230 [globalVar = GP:L = 1]
231 config.sys_language_uid = 1
232 [end]