Movable Type Enterprise Documentation

Back to docs index

Chapter Calendar

In this section:


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 month of the archive in context, when publishing
date-based archives.

The default behavior is to generate a monthly calendar based on the
current date.

  • 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 Appendix C.

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.

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.