# 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> }