我在TYPO3扩展程序“bootstrap_package”中有以下代码段,可在TYPO3 Extension Repository中找到。
dataProcessing {
10 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor
10 {
table = tx_bootstrappackage_accordion_item
where {
data = field:uid
intval = 1
wrap = tt_content=|
}
orderBy = sorting
dataProcessing {
10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
10 {
references.fieldName = media
}
}
}
}
它从属于Accordion Content Element的表中获取记录(Accordion items)。多数民众赞成工作。 但是当我在页面中的某处插入对此Accordion的引用时,将不会获取记录。
如何更改此代码以使其正常工作?
非常感谢。
答案 0 :(得分:1)
我这样使用它:( pidInList.field = pid<<< is missing)
tt_content.xy =< lib.default
tt_content.xy {
templateName = CE_Stage
dataProcessing {
30 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor
30 {
table = tx_xy_slider
pidInList.field = pid
where {
data = field:uid
intval = 1
wrap = tt_content=|
}
orderBy = sorting
as = slides
dataProcessing {
10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
10 {
references.fieldName = image
as = images
}
}
}
}
}