[TYPO3] start and stop function typoscript

Bas van der Togt b.vandertogt at profinit.com
Wed Nov 1 11:51:07 CET 2006


Hello list,

I want to start and stop a picture of mine every season.
Spring has to start 20 th of march and stop 21 th of june for example.
What am i doing wrong in the following code:

My code:
# Image
[month = 3] && [dayofmonth = 20]
temp.Image = IMAGE
temp.Image {
   file = fileadmin/templates/images/image_spring.jpg
   file.width = 800
   file.height = 250
}
[end]

[month = 6] && [dayofmonth = 21]
temp.Image = IMAGE
temp.Image {
   file = fileadmin/templates/images/image_summer.jpg
   file.width = 800
   file.height = 250
}
[end]

[month = 9] && [dayofmonth = 23]
temp.Image = IMAGE
temp.Image {
   file = fileadmin/templates/images/image_autumn.jpg
   file.width = 800
   file.height = 250
}
[end]

[month = 12] && [dayofmonth = 21]
temp.Image = IMAGE
temp.Image {
   file = fileadmin/templates/images/image_winter.jpg
   file.width = 800
   file.height = 250
}
[end]

cheers,
Bas



More information about the TYPO3-english mailing list