[TYPO3-english] Can't get typoscript date conditions to work
Lukas Mattsson
lukas at antroposofi.info
Tue Aug 24 11:50:53 CEST 2010
I need to display content that is appropriate to the current season. As
a start, I test to just display the name of the current season. But
while 9 prints out "08" as expected, how come the 6 fail to display
anything? "08" is in its isInList.
5 = TEXT
5.value = Spring
5.if {
value.data = date:m
isInList = 03,04,05
}
6 = TEXT
6.value = Summer
6.if {
value.data = date:m
isInList= 06,07,08
}
7.value = Autumn
7.if {
value.data = date:m
isInList= 09,10,11
}
8.value = Winter
8.if {
value.data = date:m
isInList= 12,01,02
}
9 = TEXT
9.data = date:m
9.wrap = <p>Date: |</p>
More information about the TYPO3-english
mailing list