085f57874a902451784ca04d6b5bb3a6c5ababb8
[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,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                                 # prevent sys_language_uid lookup
65                                 languageField = 0
66                         }
67                         renderObj < lib.watcherDataObject
68                         renderObj.1.watcher.dataWrap = {register:watcher}|.__pages/pages:{field:uid}
69                 }
70                 20 = CONTENT
71                 20 {
72                         table = tt_content
73                         select {
74                                 orderBy = sorting
75                                 where = colPos=0
76                         }
77                         renderObj < lib.watcherDataObject
78                         renderObj.1.watcher.dataWrap = {register:watcher}|.__contents/tt_content:{field:uid}
79                         renderObj {
80                                 10 = CONTENT
81                                 10 {
82                                         if.isTrue.field = categories
83                                         table = sys_category
84                                         select {
85                                                 pidInList = root,-1
86                                                 selectFields = sys_category.*
87                                                 join = sys_category_record_mm ON sys_category_record_mm.uid_local = sys_category.uid
88                                                 where.data = field:_ORIG_uid // field:uid
89                                                 where.intval = 1
90                                                 where.wrap = sys_category_record_mm.uid_foreign=|
91                                                 orderBy = sys_category_record_mm.sorting_foreign
92                                                 languageField = sys_category.sys_language_uid
93                                         }
94                                         renderObj < lib.watcherDataObject
95                                         renderObj.1.watcher.dataWrap = {register:watcher}|.categories/sys_category:{field:uid}
96                                 }
97                                 20 = CONTENT
98                                 20 {
99                                         if.isTrue.field = tx_irretutorial_1nff_hotels
100                                         table = tx_irretutorial_1nff_hotel
101                                         select {
102                                                 orderBy = sorting
103                                                 where.field = uid
104                                                 where.intval = 1
105                                                 where.wrap = parenttable="tt_content" AND parentid=|
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                                                         }
120                                                         renderObj < lib.watcherDataObject
121                                                         renderObj.1.watcher.dataWrap = {register:watcher}|.offers/tx_irretutorial_1nff_offer:{field:uid}
122                                                         renderObj {
123                                                                 10 = CONTENT
124                                                                 10 {
125                                                                         if.isTrue.field = prices
126                                                                         table = tx_irretutorial_1nff_price
127                                                                         select {
128                                                                                 orderBy = sorting
129                                                                                 where.field = uid
130                                                                                 where.intval = 1
131                                                                                 where.wrap = parenttable="tx_irretutorial_1nff_offer" AND parentid=|
132                                                                         }
133                                                                         renderObj < lib.watcherDataObject
134                                                                         renderObj.1.watcher.dataWrap = {register:watcher}|.prices/tx_irretutorial_1nff_price:{field:uid}
135                                                                 }
136                                                         }
137                                                 }
138                                         }
139                                 }
140                                 30 = CONTENT
141                                 30 {
142                                         if.isTrue.field = tx_irretutorial_1ncsv_hotels
143                                         table = tx_irretutorial_1ncsv_hotel
144                                         select {
145                                                 uidInList.data = field:tx_irretutorial_1ncsv_hotels
146                                                 orderBy = sorting
147                                                 # prevent sys_language_uid lookup
148                                                 languageField = 0
149                                         }
150                                         renderObj < lib.watcherDataObject
151                                         renderObj.1.watcher.dataWrap = {register:watcher}|.tx_irretutorial_1ncsv_hotels/tx_irretutorial_1ncsv_hotel:{field:uid}
152                                         renderObj {
153                                                 10 = CONTENT
154                                                 10 {
155                                                         if.isTrue.field = offers
156                                                         table = tx_irretutorial_1ncsv_offer
157                                                         select {
158                                                                 uidInList.data = field:offers
159                                                                 orderBy = sorting
160                                                                 # prevent sys_language_uid lookup
161                                                                 languageField = 0
162                                                         }
163                                                         renderObj < lib.watcherDataObject
164                                                         renderObj.1.watcher.dataWrap = {register:watcher}|.offers/tx_irretutorial_1ncsv_offer:{field:uid}
165                                                         renderObj {
166                                                                 10 = CONTENT
167                                                                 10 {
168                                                                         if.isTrue.field = prices
169                                                                         table = tx_irretutorial_1ncsv_price
170                                                                         select {
171                                                                                 uidInList.data = field:prices
172                                                                                 orderBy = sorting
173                                                                                 # prevent sys_language_uid lookup
174                                                                                 languageField = 0
175                                                                         }
176                                                                         renderObj < lib.watcherDataObject
177                                                                         renderObj.1.watcher.dataWrap = {register:watcher}|.prices/tx_irretutorial_1ncsv_price:{field:uid}
178                                                                 }
179                                                         }
180                                                 }
181                                         }
182                                 }
183                                 40 = FILES
184                                 40 {
185                                         if.isTrue.field = image
186                                         references {
187                                                 fieldName = image
188                                         }
189                                         renderObj < lib.watcherFileObject
190                                         renderObj.1.watcher.dataWrap = {register:watcher}|.image/
191                                 }
192                                 50 = CONTENT
193                                 50 {
194                                         if.isTrue.field = tx_testdatahandler_select
195                                         table = tx_testdatahandler_element
196                                         select {
197                                                 uidInList.data = field:tx_testdatahandler_select
198                                                 pidInList = 0
199                                                 orderBy = sorting
200                                                 # prevent sys_language_uid lookup
201                                                 languageField = 0
202                                         }
203                                         renderObj < lib.watcherDataObject
204                                         renderObj.1.watcher.dataWrap = {register:watcher}|.tx_testdatahandler_select/tx_testdatahandler_element:{field:uid}
205                                 }
206                                 60 = CONTENT
207                                 60 {
208                                         if.isTrue.field = tx_testdatahandler_group
209                                         table = tx_testdatahandler_element
210                                         select {
211                                                 uidInList.data = field:tx_testdatahandler_group
212                                                 pidInList = 0
213                                                 orderBy = sorting
214                                                 # prevent sys_language_uid lookup
215                                                 languageField = 0
216                                         }
217                                         renderObj < lib.watcherDataObject
218                                         renderObj.1.watcher.dataWrap = {register:watcher}|.tx_testdatahandler_group/tx_testdatahandler_element:{field:uid}
219                                 }
220                         }
221                 }
222                 stdWrap.postUserFunc = TYPO3\CMS\Core\Tests\Functional\Framework\Frontend\Collector->attachSection
223                 stdWrap.postUserFunc.as = Default
224         }
225         stdWrap.postUserFunc = TYPO3\CMS\Core\Tests\Functional\Framework\Frontend\Renderer->renderSections
226 }
227
228 [globalVar = GP:L = 1]
229 config.sys_language_uid = 1
230 [end]