[TYPO3] Random Content
    La Farge Douglas 
    doug at gcnpublishing.com
       
    Thu Mar  6 20:35:26 CET 2008
    
    
  
Hi All,
I'm attempting to have a page load random content (from a list of  
content id's).
In my template I have ###THE_LISTS##
which is populated as follows (content id 302 in this case)
marks.THE_LISTS = RECORDS
   marks.THE_LISTS {
   tables = tt_content
   source = 302
  }
I would like it to randomly select the content id to populate from a  
list.
This is a hack and probably (obviously) won't work but it might get  
the point across?
my_random_record = random[302,303,304,305,306,307]
marks.THE_LISTS = RECORDS
   marks.THE_LISTS {
   tables = tt_content
   source = {$my_random_record}
  }
-+-+-+-+-+-+-+-+-+-+-+-+-+
Doug La Farge
doug at gcnpublishing.com
203.665.6211 x209 (w)
928.699.0663 (c)
    
    
More information about the TYPO3-english
mailing list