[TYPO3-english] Conditions on starttime and endtime

JoH asenau info at cybercraft.de
Thu Apr 18 15:49:37 CEST 2013


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

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com


More information about the TYPO3-english mailing list