【发布时间】:2020-04-14 14:13:58
【问题描述】:
我有一个自己的 DCE 元素,我想在起始页上显示一个随机元素。
当我通过10 = CONTENT 和select 选择CType 时,我必须输入pidInList。
但我想要整个站点的 CE,而不是特定的 uid。
如何在 sql 语句中禁用此功能?
我当前的代码:
10 = CONTENT
10 {
table = tt_content
select {
selectFields = *, rand() as virt_rnd
pidInList = *
where = colPos=0 and CType=dce_ref
max = 1
orderBy = virt_rnd
languageField = sys_language_uid
}
【问题讨论】:
标签: typo3 typoscript typo3-9.x tx-dce