Page 1 of 1

Adding "Time TBA" to Calendar

Posted: Fri Mar 21, 2008 2:35 am
by carterbeech
I'm trying to figure out a way to have the calendar recognize that when the time is set to the default, midnight, it should not print this value.  This site I'm using it on has a lot of events that don't get a time assigned until after they are posted so I want be able to easily add the time using the dropdowns but don't want to incorrectly display midnight until I have the times.

It seems easy, I'm just stuck.  The site is running Black Rock, cal version .0.7.13

Thanks.

Re: Adding "Time TBA" to Calendar

Posted: Fri Mar 21, 2008 4:13 am
by Nullig
You could use an if statement in your template, like:

{if $event.event_date_start|date_format:"%H" == '00'}

to filter them.

Nullig

Re: Adding "Time TBA" to Calendar

Posted: Fri Mar 21, 2008 1:05 pm
by carterbeech
Perfect, thank you.