MT::TemplateMap - Movable Type archive-template association record
use MT::TemplateMap;
my $map = MT::TemplateMap->new;
$map->blog_id($tmpl->blog_id);
$map->template_id($tmpl->id);
$map->archive_type('Monthly');
$map->file_template('<$MTArchiveDate format="%Y/%m/index.html"$>');
$map->is_preferred(1);
$map->save
or die $map->errstr;
An MT::TemplateMap object represents a single association between an
Archive Template and an archive type for a particular blog. For example, if
you set up a template called Date-Based and assign to the Monthly
archive type in your blog, such an association will be represented by one
MT::TemplateMap object.
As a subclass of MT::Object, MT::TemplateMap inherits all of the data-management and -storage methods from that class; thus you should look at the MT::Object documentation for details about creating a new object, loading an existing object, saving an object, etc.
The MT::TemplateMap object holds the following pieces of data. These fields can be accessed and set using the standard data access methods described in the MT::Object documentation.
Individual,
Daily, Weekly, Monthly, or Category.
In addition to numeric ID lookup, you can look up or sort records by any combination of the following fields. See the load documentation in MT::Object for more information.
Please see the MT manpage for author, copyright, and license information.