[TYPO3-english] TS get random image
Heinz Schilling
webdesign at webtekk.ch
Tue Jul 14 09:39:37 CEST 2015
Hi to the forum
I try to get one image random from a content element via TypoScript. Page and COA are not cached.
10 = FILES
10 {
references {
table = tt_content
uid.field = uid
fieldName = image
}
begin = 0
#begin.listNum = rand
maxItems = 5
renderObj = IMAGE
renderObj {
file {
import.data = file:current:uid
import.listNum = rand
treatIdAsReference = 1
}
I always get only the first image. Any ideas how I can solve this?
Greetings, Heinz
More information about the TYPO3-english
mailing list