localendar Forums Homepage


Print at Aug 16, 2025, 9:06:07 PM

Posted by support at Jul 13, 2009, 5:27:56 PM
Hide events from previous/next month
This is a small enhancement, but one that's been asked for frequently.

Some members don't want to see past events for the last few days of the previous month. These show up at the beginning on the month-block view sometimes when those days are used to fill-out the calendar.

Likewise, they don't want to see events for the day or two (or three) that may show up for next month.

Add the parameter current_only=Y to your month-block calendar link, and you will only get the events for the current month.

For example:

http://www.localendar.com/public/sample?current_only=Y

or (if you are using other parameters such as with an embedded calendar)

<SCRIPT language="Javascript" src="http://www.localendar.com/public/sample?include=Y&style=M0&current_only=Y"> </SCRIPT>

(Basically, if you are only passing in 1 parameter to your calendar link, it starts with a question mark. If you are passing in multiple parameters, the first one starts with a question mark, and the rest all start with an ampersand)
----------------------------------------
Marc Higgins
Support Associate, localendar.com
Follow us on Twitter! http://www.twitter.com/localendar_news

Help! | Cobranding | Legal | Privacy Policy | About localendar.com | Contact Us