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.

« Template Refresh | Up | TrackBack »

Chapter Templates

In this section:


Choosing this option causes Movable Type to dynamically publish this index template insetad of writing the output to the filsystem. This option is only present when using a SQL database. (i.e. MySQL, SQLite or PostgreSQL).

When this box is checked, the index template will be rebuilt any time all index templates are rebuilt. Otherwise, it is only rebuilt when this specific template is rebuilt.

This field contains the name of the template as shown in the template listing. Although the field is free-form, you should avoid non-alphanumeric characters (spaces are fine) and redundant template names within a particular weblog.

This field contains the filename and, optionally, the filesystem path to which Movable Type should publish an index template. If a relative path is used, it is relative to the blog's Site Root directory.

Examples

In the following examples, SITE_ROOT represents the blog's site root directory:

Output file value Publishes to...
index.html SITE_ROOT/index.html
css/p/menu.css SITE_ROOT/css/p/menu.css
../../otherblog/blog.inc.php SITE_ROOT/../../otherblog/blog.inc.php
/var/www/htdocs/blog/index.html /var/www/htdocs/blog/index.html

In the third example above, the '..' is geekspeak for the parent directory. So in English, that output file value means:

"Write the published file for this index template out to blog.inc.php in the directory otherblog which is two directory levels above SITE_ROOT"

Represented visually, it would be:

grandparent/
    otherblog/
        blog.inc.php
    parent/
        SITE_ROOT/

Related

This field contains the path to the linked file for a particular template. See Editing a Template using an External Editor for more details on linked file usage.

For relative file paths, the root is typically the MT directory, but this can vary in particular server environments so we recommend specifying a full path (i.e. starting with a slash '/') for this field.

This textarea contains the template code that is used to compile the page(s) which the template is responsible for producing.

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