[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TYPO3] start and stop function typoscript



> 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
_______________________________________________
TYPO3-english mailing list
[email protected]
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english