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.



