All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

'All Day' Template Variable

trif3cta 3 Jan 2013 18:00 idea, complete

Hi Low!

An 'all_day' variable might come in handy:

{if all_day}

is much more elegant than:

{if '{cf_cal_date_time:start_date}' == '{cf_cal_date_time:end_date}'}

I've been using the later to conditionally show start/end dates (end is not needed for all day).

P.S. - I hope the Fieldtype of the Year trophy looks good on your mantle. :)

Replies

  1. Low 3 Jan 2013 21:08

    You mean this? http://gotolow.com/addons/low-events/...

  2. trif3cta 3 Jan 2013 23:22

    * SLAPS FOREHEAD *

    Wow, maybe I should read the friggin Fieldtype page eh? I swear I scoured the Template Tag docs before I posted.

    Thanks!