Not a developer? Go to



This tag allows you to conditionalize a section of template code based on whether the primary template being published is a specific type of archive template.


  • type or archive_type: The archive type to test for, case-insensitively. See ArchiveType for acceptable values but note that plugins may also provide others.


If you wanted to include autodiscovery code for a customized Atom feed for each individual entry (perhaps for tracking comments) you could put this in your Header module. This would serve up the first link for Individual archives and the normal feed for all other templates:

<mt:IfArchiveType type="individual">
    <link rel="alternate" type="application/atom+xml"
        title="Comments Feed"
        href="<mt:FileTemplate format="%y/%m/%-F.xml">" />
    <link rel="alternate" type="application/atom+xml"
        title="Recent Entries"
        href="<mt:Link template="feed_recent">" />