b96d82ac8fcbd84e4706124f65b21ca80eb98518
[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
14 watcher {
15 tableFields {
16 pages = uid,_ORIG_uid,pid,sorting,title
17 sys_category = uid,_ORIG_uid,_LOCALIZED_UID,pid,sys_language_uid,title,parent,items,sys_language_uid
18 tt_content = uid,_ORIG_uid,_LOCALIZED_UID,pid,sorting,sys_language_uid,header,categories,tx_irretutorial_1nff_hotels
19 tx_irretutorial_1nff_hotel = uid,_ORIG_uid,_LOCALIZED_UID,pid,sorting,sys_language_uid,title,offers
20 tx_irretutorial_1nff_offer = uid,_ORIG_uid,_LOCALIZED_UID,pid,sorting,sys_language_uid,title,prices
21 tx_irretutorial_1nff_price = uid,_ORIG_uid,_LOCALIZED_UID,pid,sorting,sys_language_uid,title,price
22 tx_irretutorial_1ncsv_hotel = uid,_ORIG_uid,_LOCALIZED_UID,pid,sorting,sys_language_uid,title,offers
23 tx_irretutorial_1ncsv_offer = uid,_ORIG_uid,_LOCALIZED_UID,pid,sorting,sys_language_uid,title,prices
24 tx_irretutorial_1ncsv_price = uid,_ORIG_uid,_LOCALIZED_UID,pid,sorting,sys_language_uid,title,price
25 tx_testdatahandler_element = uid,_ORIG_uid,_LOCALIZED_UID,pid,sorting,sys_language_uid,title
26 }
27 }
28
29 page = PAGE
30 page {
31 10 = CONTENT
32 10 {
33 watcher.parentRecordField = __pages
34 table = pages
35 select {
36 orderBy = sorting
37 pidInList = this
38 }
39 }
40 20 = CONTENT
41 20 {
42 watcher.parentRecordField = __contents
43 table = tt_content
44 select {
45 orderBy = sorting
46 where = colPos=0
47 languageField = sys_language_uid
48 }
49 renderObj = COA
50 renderObj {
51 10 = CONTENT
52 10 {
53 if.isTrue.field = categories
54 watcher.parentRecordField = categories
55 table = sys_category
56 select {
57 pidInList = 0
58 uidInList.preUserFunc = TYPO3\CMS\Core\Tests\Functional\Framework\Frontend\UserFunction->getManyToManyIds
59 uidInList.preUserFunc {
60 uidForeign.data = field:_ORIG_uid // field:uid
61 manyToManyTableName = sys_category_record_mm
62 matchTableName = tt_content
63 matchFieldName = categories
64 }
65 selectFields = sys_category.*
66 join = sys_category_record_mm ON sys_category_record_mm.uid_local = sys_category.uid
67 where.data = field:_ORIG_uid // field:uid
68 where.intval = 1
69 where.wrap = sys_category_record_mm.uid_foreign=|
70 orderBy = sys_category_record_mm.sorting_foreign
71 languageField = sys_category.sys_language_uid
72 }
73 }
74 20 = CONTENT
75 20 {
76 if.isTrue.field = tx_irretutorial_1nff_hotels
77 watcher.parentRecordField = tx_irretutorial_1nff_hotels
78 table = tx_irretutorial_1nff_hotel
79 select {
80 orderBy = sorting
81 where.field = uid
82 where.intval = 1
83 where.wrap = parenttable="tt_content" AND parentid=|
84 languageField = sys_language_uid
85 }
86 renderObj = CONTENT
87 renderObj {
88 if.isTrue.field = offers
89 watcher.parentRecordField = offers
90 table = tx_irretutorial_1nff_offer
91 select {
92 orderBy = sorting
93 where.field = uid
94 where.intval = 1
95 where.wrap = parenttable="tx_irretutorial_1nff_hotel" AND parentid=|
96 languageField = sys_language_uid
97 }
98 renderObj = CONTENT
99 renderObj {
100 if.isTrue.field = prices
101 watcher.parentRecordField = prices
102 table = tx_irretutorial_1nff_price
103 select {
104 orderBy = sorting
105 where.field = uid
106 where.intval = 1
107 where.wrap = parenttable="tx_irretutorial_1nff_offer" AND parentid=|
108 languageField = sys_language_uid
109 }
110 }
111 }
112 }
113 30 = CONTENT
114 30 {
115 if.isTrue.field = tx_irretutorial_1ncsv_hotels
116 watcher.parentRecordField = tx_irretutorial_1ncsv_hotels
117 table = tx_irretutorial_1ncsv_hotel
118 select {
119 uidInList.data = field:tx_irretutorial_1ncsv_hotels
120 orderBy = sorting
121 # not including sys_language_uid lookup
122 # languageField = sys_language_uid
123 }
124 renderObj = CONTENT
125 renderObj {
126 if.isTrue.field = offers
127 watcher.parentRecordField = offers
128 table = tx_irretutorial_1ncsv_offer
129 select {
130 uidInList.data = field:offers
131 orderBy = sorting
132 # not including sys_language_uid lookup
133 # languageField = sys_language_uid
134 }
135 renderObj = CONTENT
136 renderObj {
137 if.isTrue.field = prices
138 watcher.parentRecordField = prices
139 table = tx_irretutorial_1ncsv_price
140 select {
141 uidInList.data = field:prices
142 orderBy = sorting
143 # not including sys_language_uid lookup
144 # languageField = sys_language_uid
145 }
146 }
147 }
148 }
149 50 = CONTENT
150 50 {
151 if.isTrue.field = tx_testdatahandler_select
152 watcher.parentRecordField = tx_testdatahandler_select
153 table = tx_testdatahandler_element
154 select {
155 uidInList.data = field:tx_testdatahandler_select
156 pidInList = 0
157 orderBy = sorting
158 # not including sys_language_uid lookup
159 # languageField = sys_language_uid
160 }
161 }
162 60 = CONTENT
163 60 {
164 if.isTrue.field = tx_testdatahandler_group
165 watcher.parentRecordField = tx_testdatahandler_group
166 table = tx_testdatahandler_element
167 select {
168 uidInList.data = field:tx_testdatahandler_group
169 pidInList = 0
170 orderBy = sorting
171 # not including sys_language_uid lookup
172 # languageField = sys_language_uid
173 }
174 }
175 }
176 }
177 }
178
179 [globalVar = GP:L = 1]
180 config.sys_language_uid = 1
181 [end]