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