[TYPO3] allWrap media field

Francois Suter fsuter at cobweb.ch
Sat Nov 17 17:57:11 CET 2007


Hi,

> Is it possible to wrap all the images from the media field?
> What i get now: image1.jpg,image2.jpg,image3.jpg etc
> So what i want is 'image1.jpg','image2.jpg','image3.jpg'

Yes, try something like:

obj.header = TEXT
obj.header {
	data = levelmedia : -1 , slide
	split {
		token = ,
		cObjNum = 1
		1 {
			wrap (
				<script type="text/javascript">
					window.onload = function() {
						myShow = new Slideshow('slideshow', { type: 'fade', duration:  
[2000,4000], width: 500, height: 227, images: [|], hu: 'uploads/ 
media/' });
					}
			   	</script>
			)
		}
	}
}

HTH

François Suter

-- 
Cobweb Development Sàrl
www.cobweb.ch

Rue Eugène-Marziano 15, CH-1227 Les Acacias (Geneva - Switzerland)
T: +41 22 880 00 93, F: +41 22 880 00 94, E: support at cobweb.ch
web solutions for professionnal requirements






More information about the TYPO3-english mailing list