[TYPO3-english] Random order of a list

2012-09-21 Thread Jan Bednarik
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

Re: [TYPO3-english] Random order of a list

2012-09-21 Thread amadeo Marketing & Design - Paul Garais
Hi Jan, you could get the images directly from the database via ts ... example: 10=CONTENT 10{ table=tt_content select{ elementsarestored pidInList=*PAGE_ID* max=5 orderBy=rand() } } Greets, Paul Am 21.09.2012 14:10, schrieb Jan Bednarik: Hi, I've got a list of images (standard Image co

Re: [TYPO3-english] Random order of a list

2012-09-21 Thread Jan Bednarik
Hi Paul, I mean, I have 1 tt_content record (Images) with images stored in the images column like this: image1.jpg,image2.jpg,image3.jpg Your suggestion won't work in this case, unfortunately. Jan Dne 21.9.2012 14:33, amadeo Marketing & Design - Paul Garais napsal(a): Hi Jan, you could ge

Re: [TYPO3-english] Random order of a list

2012-09-21 Thread amadeo Marketing & Design - Paul Garais
Hi Jan, you could just split them up into several records on a separate (hidden) page (so no other content elements will be selected). Greets, Paul Am 21.09.2012 15:12, schrieb Jan Bednarik: Hi Paul, I mean, I have 1 tt_content record (Images) with images stored in the images column like