[TASK] Enable DataHandler frontend rendering tests
[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_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         }
23 }
24
25 page = PAGE
26 page {
27         10 = CONTENT
28         10 {
29                 watcher.parentRecordField = __contents
30                 table = tt_content
31                 select {
32                         orderBy = sorting
33                         where = colPos=0
34                         languageField = sys_language_uid
35                 }
36                 renderObj = COA
37                 renderObj {
38                         10 = CONTENT
39                         10 {
40                                 if.isTrue.field = categories
41                                 watcher.parentRecordField = categories
42                                 table = sys_category
43                                 select {
44                                         pidInList = 0
45                                         uidInList.preUserFunc = TYPO3\CMS\Core\Tests\Functional\Framework\Frontend\UserFunction->getManyToManyIds
46                                         uidInList.preUserFunc {
47                                                 uidForeign.data = field:_ORIG_uid // field:uid
48                                                 manyToManyTableName = sys_category_record_mm
49                                                 matchTableName = tt_content
50                                                 matchFieldName = categories
51                                         }
52                                         selectFields = sys_category.*
53                                         join = sys_category_record_mm ON sys_category_record_mm.uid_local = sys_category.uid
54                                         where.data = field:_ORIG_uid // field:uid
55                                         where.intval = 1
56                                         where.wrap = sys_category_record_mm.uid_foreign=|
57                                         orderBy = sys_category_record_mm.sorting_foreign
58                                         languageField = sys_category.sys_language_uid
59                                 }
60                         }
61                         20 = CONTENT
62                         20 {
63                                 if.isTrue.field = tx_irretutorial_hotels
64                                 watcher.parentRecordField = tx_irretutorial_hotels
65                                 table = tx_irretutorial_1nff_hotel
66                                 select {
67                                         orderBy = sorting
68                                         where.field = uid
69                                         where.intval = 1
70                                         where.wrap = parenttable="tt_content" AND parentid=|
71                                         languageField = sys_language_uid
72                                 }
73                                 renderObj = CONTENT
74                                 renderObj {
75                                         if.isTrue.field = offers
76                                         watcher.parentRecordField = offers
77                                         table = tx_irretutorial_1nff_offer
78                                         select {
79                                                 orderBy = sorting
80                                                 where.field = uid
81                                                 where.intval = 1
82                                                 where.wrap = parenttable="tx_irretutorial_1nff_hotel" AND parentid=|
83                                                 languageField = sys_language_uid
84                                         }
85                                         renderObj = CONTENT
86                                         renderObj {
87                                                 if.isTrue.field = prices
88                                                 watcher.parentRecordField = prices
89                                                 table = tx_irretutorial_1nff_price
90                                                 select {
91                                                         orderBy = sorting
92                                                         where.field = uid
93                                                         where.intval = 1
94                                                         where.wrap = parenttable="tx_irretutorial_1nff_offer" AND parentid=|
95                                                         languageField = sys_language_uid
96                                                 }
97                                         }
98                                 }
99                         }
100                 }
101         }
102 }
103
104 [globalVar = GP:L = 1]
105 config.sys_language_uid = 1
106 [end]