[TYPO3] allWrap media field
Bas van der Togt
b.vandertogt at profinit.com
Sat Nov 17 20:44:02 CET 2007
I found it:
obj.header = TEXT
obj.header.data = levelmedia: -1, slide
obj.header.split {
token = ,
wrap = '|',
}
obj.header.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>
)
cheers,
Bas
Bas van der Togt schreef:
> Thank you for your answer Francois!
>
> But this script is not working.
> It's repeating the javascript without any files from the mediafield.
> Any iedea?
>
> kind regards,
> Bas
>
> Francois Suter schreef:
>> Hi again,
>>
>> I think I did a small error in my script. I think it should rather be:
>>
>> obj.header = TEXT
>> obj.header {
>> data = levelmedia : -1 , slide
>> split {
>> token = ,
>> cObjNum = 1
>> 1 {
>> 10 = TEXT
>> 10 {
>> value.current = 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>
>> )
>> }
>> }
>> }
>> }
>>
>> Not tested, but it should put you on the right track anyway. Hopefully
>> :-)
>>
>> Cheers
More information about the TYPO3-english
mailing list