Help - Search - Members - Calendar
Full Version: More than 1 calendar?
Movable Type Community Forum > Additional Resources > Tips and Tricks
lvalesko
I'm a newbie so please be gentle  :)

I'd like to have not only the current month's calendar but also 2 or 3 future months so I can post upcoming events on my page.

Can anyone explain how to do this as simply as possible? (I'm not a code person!)

Thanks in advance!
-Lori
Deane
You'll need to mess with the MTCalendar tags in the template.  Find the MTCalendar tag that surrounds the calendar, and you can do something like this:

CODE
<MTCalendar month="200304">
...
</MTCalendar>

You can copy and past ths calendar code several times for multiple months.

This isn't going to be automatic -- you'll need to manually adjust this.  Brad's Supplemental Calendar Plugins may help at some point -- I know he supports month offset.

Deane
scsmith
Brad's plugin will do what you need, but (AFAIK) it will only add one calendar in either direction - that is, you can have this month's and next month's, or this month's and last month's, but no more.

Another method is to replace the MTCalendar tags with MTArchiveList, and use lastn to get the number of calendars you want. However, this will start from the farthest date in the future and go backwards, so there's no real way to ensure that this month will show up unless you keep track of how many months in advance you've posted.

More details here....

-Steph
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.