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

Re: [TYPO3] start and stop function typoscript



> The first two months of every season are working now, but the last month  
>   not. Do you know why?
>
> My code now:
>
> # Image
> [month = 12] && [dayofmonth > 21] || [month = 1] || [month = 2] ||  
> [month = 3] && [dayofmonth < 22]
> temp.Image = IMAGE
> temp.Image {
>    file = fileadmin/templates/images/image_winter.jpg
>    file.width = 800
>    file.height = 250
> }
> [end]



I'm not sure, maybe something with TS parsing of composite conditions.

you can try, as a debug/workaround, to expand them to smaller ones, or  
even to single conditions. it would be an equivalent to composite  
disjunction ( ... || ... || ... || ... )

Did you play with 'set conditions' in TS object browser?

eg.:

temp.Image = IMAGE
temp.Image {
   file.width = 800
   file.height = 250
}

[month = 12] && [dayofmonth > 21] || [month = 1]
temp.Image.file = fileadmin/templates/images/image_winter.jpg
[end]

[month = 2] || [month = 3] && [dayofmonth < 21]
temp.Image.file = fileadmin/templates/images/image_winter.jpg
[end]

[month = 3] && [dayofmonth > 20]
temp.Image.file = fileadmin/templates/images/image_spring.jpg
[end]

[month = 4]
temp.Image.file = fileadmin/templates/images/image_spring.jpg
[end]



_______________________________________________
TYPO3-english mailing list
[email protected]
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english