[TYPO3] start and stop function typoscript

Amiran Chyb amiran.chyb at stopspam.gmail.com
Wed Nov 1 12:40:04 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]


TS will look into those conditions just on those specifig days, on any  
other day none of those conditions will be true.

Shouldn't you use something like:

[month = 3] && [dayofmonth > 20] || [month = 4] || [month = 5] || [month =  
6] && [dayofmonth < 21]

for spring, and for other months analogically?

Am



More information about the TYPO3-english mailing list