Format days on calendar not in the month (or remove!)
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
Low 19 Dec 2012 09:11
Hi James,
You can use any of these three conditionals:
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.
James 19 Dec 2012 14:59
Ah, of course. Thanks, for some reason that didn't click at 11:30 at night.