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.
Adding "Time TBA" to Calendar
-
- Forum Members
- Posts: 48
- Joined: Tue Nov 14, 2006 9:06 pm
Re: Adding "Time TBA" to Calendar
You could use an if statement in your template, like:
{if $event.event_date_start|date_format:"%H" == '00'}
to filter them.
Nullig
{if $event.event_date_start|date_format:"%H" == '00'}
to filter them.
Nullig
-
- Forum Members
- Posts: 48
- Joined: Tue Nov 14, 2006 9:06 pm
Re: Adding "Time TBA" to Calendar
Perfect, thank you.