Benutzer: Gast
Eintrag: TypoScript: Random-Content

TypoScript: Random-Content

von: marcel
Tags: Typo3, TypoScript
Kreise: Typo3
Code: TypoScript (TS)
# Interval to calculate a new element on each hit
lib.randomContent = COA_INT
lib.randomContent {
  10 = CONTENT
  10 {
    table = tt_content
    select {
      # UID of the page with the content elements
      pidInList = 10

      # amount of content elements to find
      max = 1

      # randomize
      orderBy = rand()

      # constrain by language
      languageField = sys_language_uid
    }
  }
  
  wrap = <div id="randomContent">|</div>
}
Es gibt noch keine Kommentare.