I have an own DCE element and I want to show a random one on the start page.
When I select the CType via 10 = CONTENT
and select
, I must type a pidInList
.
But I want a CE from the whole site, not from a specific uid.
How can iI disable this in the sql statement?
my current code:
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
}
UPDATE for Typo3 v10
Typoscript:
Using in fluid template: