[TYPO3-english] Random content via TypoScript

Thomas Lunde tlp at netimage.dk
Wed Aug 22 09:28:52 CEST 2012


Hi

I have written the following TS code for showing random content:

lib.topimage = COA_INT
lib.topimage {
     10 = CONTENT
     10 {
         table = tt_content
         select {
             pidInList = 51
             max = 1
             orderBy = RAND()
         }
     }
}

But I have two issues.

1) Is it possible to print to the screen which ID is shown? This is for 
debug.

2) My site is in two languages, but it seems that this code doesn't care 
about the language. How can I make the code check the language to?

Thanks! :)

/Thomas


More information about the TYPO3-english mailing list