Welcome to MTTags.com. Hopefully, you'll discover that this a really easy place to find information about Movable Type Template Tags. If you think we could be doing something better, please let us know! If this is your first time here, be sure to stop by the information desk, because we've got a growing todo list that might already include what you were about to suggest.
A container tag representing a calendar month that lists a single calendar "cell" in the calendar display.
Attributes:
month - An optional attribute that specifies the calendar month and year the tagset is to generate. The value must be in YYYYMM format.
The month attribute also recognizes two special values. Given a value of "last," the calendar will be generated for the previous month from the current date. Using a value of "this" will generate a calendar for the current month.
The default behavior is to generate a monthly calendar based on the archive in context. When used in the context of an archive type other then "Category," the calendar will be generated for the month in which the archive falls.
category - An optional attribute that specifies the name of a category from which to return entries.
You can also combine the two attributes. For example:
<MTCalendar month="200201" category="Foo"> ... </MTCalendar>
will display all entries from January, 2002 in the category Foo.
The number of the "cell" in the calendar, beginning with 1. The count begins with the first cell regardless of whether a day of the month falls on it.
The timestamp of the current day of the month. Date format tags may be applied with the format attribute along with the language attribute. See Chapter C: Date Formats.
The numeric day of the month for the cell.
A conditional tag that will display its contents if the current calendar cell is for a day in another month.
A conditional tag that will display its contents if there are any entries for this day in the weblog.
A conditional tag that will display its contents if there are not entries for this day in the weblog. This tag predates the introduction of MTElse, a tag that could be used with MTCalendarIfEntries to replace MTCalendarIfNoEntries.
A conditional tag that will display its contents if the current cell is for the current day.
A conditional tag that will display its contents before a calendar week is ended.
A conditional tag that will display its contents before a calendar week is started.