The Movable Type User Manual

NOTE: This documentation is for Movable Type 3.2. If you are using a newer version, please see the documentation for Movable type 3.3x or Movable Type Enterprise.

« Controlling the Naming of Archive Pages | Up | Reusing Template Markup with Modules »

Chapter 3: Templates and Layout

Creating an Alternate Archive Template

Problem

You want to create a secondary archive template for use in your weblog.

Solution

Create a new Archive Template and map it to an archive type from the Publishing Settings tab.

Discussion

Movable Type allows you to assign multiple templates to an archive type. This allows you to output archived content with different layouts or formats if necessary. For instance, you may want to generate a syndication feed for each category in your weblog.

Begin by creating a new Archive Template. MT uses very descriptive functional names.

To create the archive mapping, go into Settings and then the Publishing tab. Click the "Create New Archive Mapping" link under Archive Mapping. This will display controls for creating the mapping.

Select the archive type and the name of the alternative archive template you just created from the two pulldown menus. Click the Add button to create the mapping in the system.

You will probably want to change the filename of the template you just mapped to avoid it writing over the existing template. (See "Controlling the Naming of Archive Pages".) When you rebuild your weblog archive pages, they will be generated with this template in addition to any other archive templates enabled in the system.

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 Support.

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