Movable Type Enterprise Documentation

« MTSearchResults | Up | MTCalendarCellNumber »

Chapter Calendar

MTCalendar

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.

Submit Feedback on This Article

Your comments on how we can improve this article are appreciated; but please do not use the feedback form to submit support requests or question. We will not respond to or publish such queries submitted through this form. If you have a technical question or problem, visit Movable Type Enterprise Support.

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