我想从另一个表中获取一个记录到当前元素中。
这是我的打字本。我需要这样的东西:
where = uid =3(这应该是当前的tx_my_doors记录>字段:特性)
看看TS中的"20“。
tt_content.irre_doors =< lib.default
tt_content.irre_doors {
templateName = IRRE_Doors
dataProcessing {
5 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor
5 {
table = tx_my_doors
pidInList.field = pid
where {
data = field:uid
intval = 1
wrap = tt_content=|
}
orderBy = sorting
as = doors
dataProcessing {
10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
10 {
references.fieldName = image
as = images
}
20 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor
20 {
table = tx_my_product_features
pidInList = 26
where = uid = 3 (this should be current tx_my_doors record > field:features)
orderBy = sorting
as = test
}
}
}
}
}发布于 2016-10-24 14:30:53
你试过这个吗?(未经测试)
20 {
table = tx_my_product_features
pidInList = 26
where {
data = field:features
wrap = uid=|
}
orderBy = sorting
as = test
}发布于 2016-10-24 19:26:45
请记住,您可以在select中使用标记
由于可以使用stdWrap,所以可以构建复杂的查询。
https://stackoverflow.com/questions/40218087
复制相似问题