Type: function
Includes a template module or external file at this point. One and only one of the following attributes must be specified:
Attributes:
module- The name of a template module in the current blog.widget- The name of the widget in the current blog to include.file- The path to an external file on the system. The path can be absolute or relative to the Local Site Path. This file is included at the time your page is built. It should not be confused with dynamic server side includes like that found in PHP.identifier- For selecting Index templates by their unique identifier.blog_id- Used to include a template from another blog in the system. Use in conjunction with themodule,widgetoridentifierattributes.
Also, attributes given to this tag are locally assigned as variables when invoking the include template.
The contents of the file or module are further evaluated for more Movable Type template tags.
Example: Including a Widget
<mt:Include widget="Search Box" />
Example: Including a File
<mt:Include file="/var/www/html/some-fragment.html" />
Example: Including a Template Module
<mt:Include module="Sidebar - Left Column" />
Example: Passing Parameters to a Template Module
<mt:Include module="Section Header" title="Elsewhere">
(from the "Section Header" template module)
<h2><mt:var name="title"></h2>
1 User Contributed Notes
I'm not sure if it's supposed to, but I could not get identifier to work with multiblog using either the [mt:multiblog] tag or blogid/includeblogs in the [mt:include] tag.