Adding "Time TBA" to Calendar

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
carterbeech
Forum Members
Forum Members
Posts: 48
Joined: Tue Nov 14, 2006 9:06 pm

Adding "Time TBA" to Calendar

Post 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.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Adding "Time TBA" to Calendar

Post 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
carterbeech
Forum Members
Forum Members
Posts: 48
Joined: Tue Nov 14, 2006 9:06 pm

Re: Adding "Time TBA" to Calendar

Post by carterbeech »

Perfect, thank you.
Post Reply

Return to “CMSMS Core”