[TYPO3-english] Radom page from treelevel or list

Tomas Mrozek mail at cascaval.com
Mon Jan 18 16:06:21 CET 2010


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


More information about the TYPO3-english mailing list