[TYPO3-english] Radom page from treelevel or list

Marek Kyncl marek.vineta at gmail.com
Mon Jan 18 16:38:10 CET 2010


Tomas Mrozek schrieb:
> Try to play with this one:
> 
> temp.randomContent = CONTENT
> temp.randomContent {
>   table = tt_content
>   select {
>     pidInList.cObject = CONTENT
>     pidInList.cObject {
>       table = pages
>       select {
>         uidInList = 1,2,3,4
>         pidInList = 0
>         recursive = 1
>         max = 1
>         orderBy = rand()
>       }
>       renderObj = TEXT
>       renderObj.field = uid
>       renderObj.wrap = |,
>     }
>     orderBy = sorting
>   }
>   renderObj < tt_content
> }
> 
> Tomas Mrozek

That's it! Thank you so much. You just saved my day :)

Regards,

Marek


More information about the TYPO3-english mailing list