Not a developer? Go to MovableType.com

MT5 Documentation

Archive Mapping

Movable Type enables publishing of individual, monthly, category and author-based archives by default, covering the needs of most users. Movable Type's "Archive Mapping" feature allows you to specify the type of archives to publish as well as the location of those archives.

The power of archive mapping

With archive mapping, you can publish multiple sets of one or more archive types with alternate representations of the content. Here are some examples of how you might use Movable Type's archive mapping capabilities:

  • Publishing both individual entry archives in HTML for viewing in a browser, and an RSS or Atom representation of that archive with an XML feed of each of the comments in that entry.

  • Publishing a duplicate version of category archives in WordXML or PDF formats, for offline consumption by your readers.

  • Publishing a low fidelity XHTML version of your date-based archives for reading on a mobile phone.

Defining archive maps

Archive maps are defined with each of your archive templates. Movable Type supports creating one of three different types of archive templates:

  • An entry archive, which is used to display individual entries
  • An entry listing archive, which is used to display a list of entries
  • A page archive, which is used to display individual pages

When you create a new archive template, you can define how those archives are published through the Archive Mapping section of the Edit Template screen. By default, Movable Type will create:

  • One archive mapping for your entry template type, to publish one archive file per blog entry.
  • Four archive mappings for your entry listing template, including
    • Monthly archives
    • Author Monthly archives
    • Category archives
    • Category Monthly archives
  • One archive mapping for your page template type, to publish one archive per blog page.

Here is a screenshot of the archive mapping list for a new blog's Entry Listing template.

archive-mapping-list.png

Creating a new archive map

To create a new archive map follow the instructions below:

  1. From the template listing screen, edit the template you want to change the mapping of. Template Options (compact)
  2. Click on "Template Options" underneath the text window of the template. Template options (expanded)
  3. Delete any template mappings (type/path/publishing) you don't want.
  4. Click "Create Archive Mapping" to add the template mapping you do want. Create Archive Mapping
  5. Click on the specific path and select "custom" if you want to create a custom path. (see below for more details)
  6. Save and Publish.

Selecting an Entry Listing Archive Map

When creating a new archive map for an Entry Listing template, Movable Type will provide you a set of archive map types to choose from. This choice determines (a) what content Movable Type will publish on the archive pages you're creating and (b) your choices for default filepaths for publishing those archives.

The archive map types for Entry Listing templates include:

  • Daily
  • Weekly
  • Monthly
  • Yearly
  • Author
  • Author Daily
  • Author Weekly
  • Author Monthly
  • Author Yearly
  • Category
  • Category Daily
  • Category Weekly
  • Category Monthly
  • Category Yearly

After selecting your archive type, you'll be presented with a list of filepath options. Select the one you would like, or you can customize the way you would like it to appear. (See below.)

When you are finished managing your archive maps, click "Save" at the bottom of the Edit Template screen.

Note: The ability to author archives is new in Movable Type 4. Also new in Movable Type 4 is the ability to create date-based category (and author) archives, so that readers can "paginate" through larger archives.

Set Publishing Method

Movable Type 4.2 allows you to specify on a map-by-map basis how you want your archive mappings published. This setting can greatly affect performance. Here are the available options and what they mean:

  • Statically (default) - publish this archive mapping immediately in real time. This tell Movable Type to publish this template whenever its contents are updated or affected by a change.
  • Publish Queue - publish this archive mapping in the background. This setting is ideal for feeds or non-critical content that does not need to be refreshed immediately. See Publish Queue documentation.
  • Dynamically - publish this archive map on demand, do not publish a file to the file system.
  • Manually - publish this archive mapping only when a designer, author, or administrator explicitly says to, typically by hitting a "Save and Publish" button.
  • Do not publish - never publish this template. This effectively disables publishing for this mapping.

Removing an archive map

To remove an archive map, locate and click on the trash can icon associated with the map you wish to remove. The ask you to confirm your choice before deleting it.

Delete Archive Map

Customizing an archive map's filepath

Movable Type allows you to customize how the system constructs the filepath for each of your archives. For example, by default the system will publish monthly archives for your blog to a filepath that looks like this: yyyy/mm/index.html. But you could, if you like, customize that file path to read mm/yyyy/index.html.

archive-mapping-customize.png

Customizing your filepath is done through Archive File Path Specifiers.

Back