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

Support archive

Format days on calendar not in the month (or remove!)

James 19 Dec 2012 04:35 question, complete

Hi Low,

So I've got a nice calendar



With current day highlighted and dots where there is an event. The problem is that I have other days from other months showing when I'd prefer that they either A) not show at all, or B) show, but allow me to apply a class with an IF statement if not part of the current month.

I'm sure this is doable but I think I lack understanding about the approach to do this.

Here is my code: http://pastebin.com/M2Jcv0gM

Replies

  1. Low 19 Dec 2012 09:11

    Hi James,

    You can use any of these three conditionals:

    {if is_prev}this is previous month{/if} 
    {if is_next}this is next month{/if}
    {if is_current}this is the current month{/if}


    In your usecase above, {if is_prev} will target days in November 2012, {if is_next} will target days in January 2013 and {is current} will target days in December 2012.

  2. James 19 Dec 2012 14:59

    Ah, of course. Thanks, for some reason that didn't click at 11:30 at night.