[TYPO3-english] Conditions on starttime and endtime
Sergio Catalá
scatala.enet at gmail.com
Fri Apr 19 11:56:52 CEST 2013
On 18/04/13 14:49, JoH asenau wrote:
> Am 18.04.2013 16:24, schrieb Sergio Catalá:
>> Hi list,
>>
>> I have the next Typoscript to display a certain field when its date is
>> between field_starttime and field_endtime:
>>
>> 10 = COA
>> 10 {
>> if.value.data = date:U
>> if.isLessThan.field = field_starttime
>> if.isGreaterThan.field = field_endtime
>> }
>>
>> The problem is it fails when the field_endtime is empty. How could I
>> solve this?
>>
>> Thanks in advance,
>> Sergio
>>
>
> Try setting an ifEmpty value to the allowed maximum of a 32bit timestamp:
>
> if.isGreaterThan.ifEmpty = 2147483647
>
> HTH
>
> Joey
>
Thank you, Joey, for your suggestion. I applied it for now and it works.
More information about the TYPO3-english
mailing list