[TYPO3] start and stop function typoscript
Amiran Chyb
amiran.chyb at stopspam.gmail.com
Wed Nov 1 14:27:12 CET 2006
> 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]
More information about the TYPO3-english
mailing list