[TYPO3-english] Random order of a list

Jan Bednarik info at bednarik.org
Fri Sep 21 14:10:10 CEST 2012


Hi,

I've got a list of images (standard Image content element - meaning it's 
image filenames seprated with comma) and I'd like to shuffle them and 
take only first 5. Is it possible with pure TS? With split I can specify 
that I want only 5 images, but I'd need to take random 5.

I guess I can use preUserFunc to shuffle the list, but I'd prefer pure 
TS if possible.

Thanks

Jan


More information about the TYPO3-english mailing list